summaryrefslogtreecommitdiff
path: root/kernel/async.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-01-25 10:31:36 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2009-01-25 10:54:57 (GMT)
commit6626bff24578753808c8b5bd4f1619e14e980f0f (patch)
tree0577d712d26fcccf1c44a4eb32f767a8812237df /kernel/async.c
parent5b74f9e0e005baf12a2df6aaeef7d7134137792b (diff)
downloadlinux-fsl-qoriq-6626bff24578753808c8b5bd4f1619e14e980f0f.tar.xz
hrtimer: prevent negative expiry value after clock_was_set()
Impact: prevent false positive WARN_ON() in clockevents_program_event() clock_was_set() changes the base->offset of CLOCK_REALTIME and enforces the reprogramming of the clockevent device to expire timers which are based on CLOCK_REALTIME. If the clock change is large enough then the subtraction of the timer expiry value and base->offset can become negative which triggers the warning in clockevents_program_event(). Check the subtraction result and set a negative value to 0. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/async.c')
0 files changed, 0 insertions, 0 deletions