OSDN Git Service

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)
commitbbf66d897adf2bb0c310db96c97e8db6369f39e1
tree7528b65e67f4eaafffc1a87b3a0b9c5b38281ad5
parenta6e707ddbdf150bd1c2a5c0eccc55abdc62a0039
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