linux/kernel/time
Jon Hunter 98962465ed nohz: Prevent clocksource wrapping during idle
The dynamic tick allows the kernel to sleep for periods longer than a
single tick, but it does not limit the sleep time currently. In the
worst case the kernel could sleep longer than the wrap around time of
the time keeping clock source which would result in losing track of
time.

Prevent this by limiting it to the safe maximum sleep time of the
current time keeping clock source. The value is calculated when the
clock source is registered.

[ tglx: simplified the code a bit and massaged the commit msg ]

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Cc: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <1250617512-23567-2-git-send-email-jon-hunter@ti.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2009-11-13 20:46:24 +01:00
..
clockevents.c
clocksource.c nohz: Prevent clocksource wrapping during idle 2009-11-13 20:46:24 +01:00
jiffies.c
Kconfig
Makefile
ntp.c
tick-broadcast.c
tick-common.c
tick-internal.h
tick-oneshot.c
tick-sched.c nohz: Prevent clocksource wrapping during idle 2009-11-13 20:46:24 +01:00
timecompare.c
timeconv.c
timekeeping.c nohz: Prevent clocksource wrapping during idle 2009-11-13 20:46:24 +01:00
timer_list.c clockevents: Use u32 for mult and shift factors 2009-11-13 20:46:23 +01:00
timer_stats.c const: constify remaining file_operations 2009-10-01 16:11:11 -07:00