]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: Allow unregistering the watchdog
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 22 Jan 2016 17:31:53 +0000 (18:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 27 Jan 2016 11:38:05 +0000 (12:38 +0100)
commit61207190bd1230b8eb13548244ffb86366ee1b01
tree7528b65e67f4eaafffc1a87b3a0b9c5b38281ad5
parent2465441bfecac5d401803a29a050ff8cf9711e0c
clocksource: Allow unregistering the watchdog

Hyper-V vmbus module registers TSC page clocksource when loaded. This is
the clocksource with the highest rating and thus it becomes the watchdog
making unloading of the vmbus module impossible.
Separate clocksource_select_watchdog() from clocksource_enqueue_watchdog()
and use it on clocksource register/rating change/unregister.

After all, lobotomized monkeys may need some love too.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Link: http://lkml.kernel.org/r/1453483913-25672-1-git-send-email-vkuznets@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clocksource.c