]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: Always verify highres capability
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Apr 2013 20:31:43 +0000 (20:31 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 May 2013 09:09:14 +0000 (11:09 +0200)
commitd5d09eeb2c2e1b2773913394258d8b77a4b4cb42
treea9bcc623b0ecc99bf9fc7f2b30be5a8a2a56bc6d
parentd2d27fd7f8b05ca9f0687d5edc5101dd19975161
clocksource: Always verify highres capability

If a clocksource has a (wrong) high rating, but can't be used as a
timebase for oneshot tick mode, it is unconditionally selected even
when the system is already in oneshot tick mode. This causes full
system failure.

Verify the clocksource selection against the oneshot mode.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <john.stultz@linaro.org>
Cc: Magnus Damm <magnus.damm@gmail.com>
Link: http://lkml.kernel.org/r/20130425143435.635040849@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clocksource.c