]> git.karo-electronics.de Git - karo-tx-linux.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:53 +0000 (12:46 -0400)
commit64323cd54f3a6450bd64aac242df7bd1ade457f3
tree1800d5d5717187470b9bc5e933985979d4f9eaf1
parent83e6726210d6c815ce044437106c738eda5ff6f6
clockevents: Prevent oneshot mode when broadcast device is periodic

commit 3a142a0672b48a853f00af61f184c7341ac9c99d upstream.

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/time/tick-broadcast.c
kernel/time/tick-common.c
kernel/time/tick-internal.h