]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tsc: Make CONFIG_X86_TSC=n build work again
authorThomas Gleixner <tglx@linutronix.de>
Tue, 17 Oct 2017 06:49:37 +0000 (08:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 17 Oct 2017 06:53:15 +0000 (08:53 +0200)
commit53cf982980fea60ffdd3c0b075a87410b0e36f99
tree0f361a7689123044f6df95d9823bff0aec941d2a
parentd13cdf568ba4d0050b243f5813fdf929255e714d
x86/tsc: Make CONFIG_X86_TSC=n build work again

tsc_async_resets is only available when CONFIG_X86_TSC=y. So a build with
CONFIG_X86_TSC=n breaks:

arch/x86/kernel/tsc.o: In function `tsc_init':
(.init.text+0x87b): undefined reference to `tsc_async_resets'

Add a stub define for the TSC=n case.

Side note: This config switch should simply be removed.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: a549130a3b20 ("x86/tsc: Add option that TSC on Socket 0 being non-zero is valid")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Mike Travis <mike.travis@hpe.com>
arch/x86/include/asm/tsc.h