aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2017-12-14 15:32:31 -0800
committerLinus Torvalds <[email protected]>2017-12-14 16:00:48 -0800
commit13ab183d138f607d885e995d625e58d47678bf97 (patch)
tree22639ff865259e61a78a8685ea2056930bbc5b48 /net/unix/sysctl_net_unix.c
parent338f1d9d1b829fec494d053f62820a2ee625b1ec (diff)
mm/kmemleak.c: make cond_resched() rate-limiting more efficient
Commit bde5f6bc68db ("kmemleak: add scheduling point to kmemleak_scan()") tries to rate-limit the frequency of cond_resched() calls, but does it in a way which might incur an expensive division operation in the inner loop. Simplify this. Fixes: bde5f6bc68db5 ("kmemleak: add scheduling point to kmemleak_scan()") Suggested-by: Linus Torvalds <[email protected]> Cc: Yisheng Xie <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions