]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clocksource: Allow unregistering the watchdog
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 22 Jan 2016 17:31:53 +0000 (18:31 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 12 Dec 2016 04:39:10 +0000 (20:39 -0800)
commit123f8424d4631bfc26d0d45f50ab0efe34530201
tree9faba72bb431349d3c74d82b3f09f152eceed52f
parent3da73c54697e0c8ba8c58b7dcb8d1718c2553527
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>
(cherry picked from commit bbf66d897adf2bb0c310db96c97e8db6369f39e1)

This commit changes the clocksource for the Hyper-V vmbus module to
provide superior performance for a VM

Orabug: 24746725
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
kernel/time/clocksource.c