Skip to content
Commit c0fc9b13 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Fixes: 341102c3 ("x86/tsc: Add option that TSC on Socket 0 being non-zero is valid")
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Mike Travis <mike.travis@hpe.com>
parent 97d21003
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment