Posix timers: limit number of timers firing at once
authorLinus Torvalds <torvalds@g5.osdl.org>
Sun, 23 Oct 2005 17:02:50 +0000 (10:02 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 23 Oct 2005 17:02:50 +0000 (10:02 -0700)
commite80eda94d3eaf1d12cfc97878eff77cd679dabc9
tree38ab17e7b9839297708a6982d661c3725d181c3a
parentd475f3f47a0427dfee483cecf9a7e9109e991423
Posix timers: limit number of timers firing at once

Bursty timers aren't good for anybody, very much including latency for
other programs when we trigger lots of timers in interrupt context.  So
set a random limit, after which we'll handle the rest on the next timer
tick.

Noted by Oleg Nesterov <oleg@tv-sign.ru>

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/posix-cpu-timers.c