android_kernel_google_msm/kernel/time
Thomas Gleixner 3f8f4ae48f nohz: Fix another inconsistency between CONFIG_NO_HZ=n and nohz=off
commit 0e576acbc1 upstream.

If CONFIG_NO_HZ=n tick_nohz_get_sleep_length() returns NSEC_PER_SEC/HZ.

If CONFIG_NO_HZ=y and the nohz functionality is disabled via the
command line option "nohz=off" or not enabled due to missing hardware
support, then tick_nohz_get_sleep_length() returns 0. That happens
because ts->sleep_length is never set in that case.

Set it to NSEC_PER_SEC/HZ when the NOHZ mode is inactive.

Reported-by: Michal Hocko <mhocko@suse.cz>
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-26 15:10:29 -04:00
..
alarmtimer.c alarmtimer: return EINVAL instead of ENOTSUPP if rtcdev doesn't exist 2013-12-04 10:50:14 -08:00
clockevents.c clockevents: Sanitize ticks to nsec conversion 2013-11-13 12:01:48 +09:00
clocksource.c
jiffies.c time: Fix overflow when HZ is smaller than 60 2014-02-22 10:32:46 -08:00
Kconfig tick: Document TICK_ONESHOT config option 2012-03-31 12:45:43 +02:00
Makefile
ntp.c ntp: Fix STA_INS/DEL clearing bug 2012-07-29 08:04:18 -07:00
posix-clock.c
tick-broadcast.c tick: Prevent uncontrolled switch to oneshot mode 2013-07-28 16:25:44 -07:00
tick-common.c clockevents: Set dummy handler on CPU_DEAD shutdown 2013-05-07 19:51:56 -07:00
tick-internal.h
tick-oneshot.c
tick-sched.c nohz: Fix another inconsistency between CONFIG_NO_HZ=n and nohz=off 2014-06-26 15:10:29 -04:00
timecompare.c
timeconv.c
timekeeping.c 3.4.y: timekeeping: fix 32-bit overflow in get_monotonic_boottime 2014-02-13 11:51:21 -08:00
timer_list.c
timer_stats.c