x86/hyperv: Make hv_setup_sched_clock inline
authorMichael Kelley <mikelley@microsoft.com>
Mon, 10 Aug 2020 01:29:51 +0000 (18:29 -0700)
committerWei Liu <wei.liu@kernel.org>
Tue, 11 Aug 2020 10:41:15 +0000 (10:41 +0000)
commitb9d8cf2eb3ceecdee3434b87763492aee9e28845
treefe88a20304e19722b2d15aa6635e189ca6fe4d63
parent608a973bd52ef1705941b18f55e39655fcfe9cdb
x86/hyperv: Make hv_setup_sched_clock inline

Make hv_setup_sched_clock inline so the reference to pv_ops works
correctly with objtool updates to detect noinstr violations.
See https://lore.kernel.org/patchwork/patch/1283635/

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/1597022991-24088-1-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/include/asm/mshyperv.h
arch/x86/kernel/cpu/mshyperv.c
include/asm-generic/mshyperv.h