diff options
author | Shaohua Li <[email protected]> | 2011-05-24 17:13:35 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-05-25 08:39:54 -0700 |
commit | c84598bbfa756b7d042da31aa4e198ae866a6c7d (patch) | |
tree | 9287d1dcfd313193b944f3dc49a6519a40a7ee4f /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 3c8f370ded3483b27f1218ff0051fcf0c7a2facd (diff) |
percpu_counter: change return value and add comments
The percpu_counter_*_positive() API in UP case doesn't check if return
value is positive. Add comments to explain why we don't. Also if count <
0, returns 0 instead of 1 for *read_positive().
[[email protected]: tweak comment]
Signed-off-by: Shaohua Li <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions