From: Thomas Gleixner Date: Sun, 25 Jan 2009 10:31:36 +0000 (+0100) Subject: hrtimer: prevent negative expiry value after clock_was_set() X-Git-Tag: v2.6.30-rc1~657^2~3^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6626bff24578753808c8b5bd4f1619e14e980f0f;p=pandora-kernel.git 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 --- Reading git-diff-tree failed