]> 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)
commit41967b85fda6199fd7f367b3f917c6b53b68cda5
treea9bcc623b0ecc99bf9fc7f2b30be5a8a2a56bc6d
parent8c64732c4e4842d7a265af419ee4ee4e31bec981
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