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)
commit5d33b883aed81c6fbcd09c6f7c3619eee850a7e2
treea9bcc623b0ecc99bf9fc7f2b30be5a8a2a56bc6d
parentfc1f7d5606487ae28d6c84e95401952927d7379e
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