]> git.baikalelectronics.ru Git - kernel.git/commit
clockevents: Prevent oneshot mode when broadcast device is periodic
authorThomas Gleixner <tglx@linutronix.de>
Fri, 25 Feb 2011 21:34:23 +0000 (22:34 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 26 Feb 2011 08:45:28 +0000 (09:45 +0100)
commit20f0c4b6e9bc9860c20379936af3c16a6587c8be
treee84f2647dc2ae71f2e54f2256ebce87624c11d97
parent31993b7127a55a5a5b5fd84a6e6bc182f78f562a
clockevents: Prevent oneshot mode when broadcast device is periodic

When the per cpu timer is marked CLOCK_EVT_FEAT_C3STOP, then we only
can switch into oneshot mode, when the backup broadcast device
supports oneshot mode as well. Otherwise we would try to switch the
broadcast device into an unsupported mode unconditionally. This went
unnoticed so far as the current available broadcast devices support
oneshot mode. Seth unearthed this problem while debugging and working
around an hpet related BIOS wreckage.

Add the necessary check to tick_is_oneshot_available().

Reported-and-tested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <alpine.LFD.2.00.1102252231200.2701@localhost6.localdomain6>
Cc: stable@kernel.org # .21 ->
kernel/time/tick-broadcast.c
kernel/time/tick-common.c
kernel/time/tick-internal.h