diff options
author | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2011-05-21 12:58:28 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-06-03 15:02:32 +0200 |
commit | 1c3cc11602111d1318c2a5743bd2e88c82813927 (patch) | |
tree | d46a1e4a1914f3bc307f8f6215864144926d0193 /drivers/gpu/drm/radeon/radeon_device.c | |
parent | 1b054b67d3bfc6dca9f634c104780f3f24ff3eec (diff) |
timers: Consider slack value in mod_timer()
There is an optimization which does not update the timer if the timer
was pending and the expiration time was unchanged.
Since commit 3bbb9ec9 ("timers: Introduce the concept of timer slack
for legacy timers") this optimization is no longer applied for timers
where the expiration time got extended due to the slack value. So we
need to check again after the expiration time might have been updated.
[ tglx: Made it a single check by applying slack first and sorting
out the slack = 0 value (all timeouts < 256 jiffies) early ]
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Link: http://lkml.kernel.org/r/20110521105828.GA29442@Chamillionaire.breakpoint.cc
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
0 files changed, 0 insertions, 0 deletions