clocksource: Enable TSC watchdog checking of HPET and PMTMR only when requested
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Feb 2023 21:53:07 +0000 (13:53 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 7 Feb 2023 00:38:30 +0000 (16:38 -0800)
commit0051293c533017e2a860e0a0a33517bc40240fff
tree54297a31350169661fd6f40446cf5f49025dd9bd
parentefc8b329c7fdc30921a7dfc109237523e1e5b1cc
clocksource: Enable TSC watchdog checking of HPET and PMTMR only when requested

Unconditionally enabling TSC watchdog checking of the HPET and PMTMR
clocksources can degrade latency and performance.  Therefore, provide
a new "watchdog" option to the tsc= boot parameter that opts into such
checking.  Note that tsc=watchdog is overridden by a tsc=nowatchdog
regardless of their relative positions in the list of boot parameters.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Reported-by: Waiman Long <longman@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Waiman Long <longman@redhat.com>
Documentation/admin-guide/kernel-parameters.txt
arch/x86/kernel/tsc.c