]> 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)
commit28c29a4ee4d3fa3805b7e8966da9de7e773dd970
tree7528b65e67f4eaafffc1a87b3a0b9c5b38281ad5
parent69a861831082e0e1128442773242315478d11eb7
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