]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tsc: Fix broken CONFIG_X86_TSC=n build
authorThomas Gleixner <tglx@linutronix.de>
Tue, 29 Nov 2016 19:28:31 +0000 (20:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 30 Nov 2016 08:44:52 +0000 (09:44 +0100)
commit2fd7599833c357f01ae96f9854b04010615ac554
treef0b48454f0758cf45c943ec74054566a35e0f08b
parentfcff133ba46ed286708562cfe3a61d71216189d1
x86/tsc: Fix broken CONFIG_X86_TSC=n build

Add the missing return statement to the inline stub
tsc_store_and_check_tsc_adjust() and add the other stubs to make a
SMP=y,TSC=n build happy.

While at it, remove the unused variable from the UP variant of
tsc_store_and_check_tsc_adjust().

Fixes: commit ba75fb646931 ("x86/tsc: Sync test only for the first cpu in a package")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/tsc.h
arch/x86/kernel/tsc_sync.c