aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorChris Peterson <[email protected]>2009-06-16 15:33:43 -0700
committerLinus Torvalds <[email protected]>2009-06-16 19:47:49 -0700
commit009789f040b71699278e70a6664701c10065e430 (patch)
tree83692d9eec2773e1d78628120f8e36807efe233b /net/lapb/lapb_subr.c
parentb72b71c6cb6ecc564d4d5f9c512a7df269837846 (diff)
slow-work: use round_jiffies() for thread pool's cull and OOM timers
Round the slow work queue's cull and OOM timeouts to whole second boundary with round_jiffies(). The slow work queue uses a pair of timers to cull idle threads and, after OOM, to delay new thread creation. This patch also extracts the mod_timer() logic for the cull timer into a separate helper function. By rounding non-time-critical timers such as these to whole seconds, they will be batched up to fire at the same time rather than being spread out. This allows the CPU wake up less, which saves power. Signed-off-by: Chris Peterson <[email protected]> Signed-off-by: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions