x86/perf: Use static_call for x86_pmu.guest_get_msrs
authorLike Xu <like.xu@linux.intel.com>
Mon, 25 Jan 2021 12:14:58 +0000 (20:14 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 27 Jan 2021 16:26:58 +0000 (17:26 +0100)
commitabd562df94d19d0a9769971a35801b3f4991715d
treef1655aa09ed1617d1b6d25f7da44662d6be51f8e
parent9a7832ce3d920426a36cdd78eda4b3568d4d09e3
x86/perf: Use static_call for x86_pmu.guest_get_msrs

Clean up that CONFIG_RETPOLINE crud and replace the
indirect call x86_pmu.guest_get_msrs with static_call().

Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210125121458.181635-1-like.xu@linux.intel.com
arch/x86/events/core.c
arch/x86/events/intel/core.c
arch/x86/include/asm/perf_event.h