cpuidle, intel_idle: Fix CPUIDLE_FLAG_IBRS
authorPeter Zijlstra <peterz@infradead.org>
Thu, 12 Jan 2023 19:43:34 +0000 (20:43 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 13 Jan 2023 10:48:15 +0000 (11:48 +0100)
commit9b461a6faae7b220c32466261965778b10189e54
tree544e74f6f15c703071720617cbfc4f9cbd3d8cf3
parent821ad23d0eaff73ef599ece39ecc77482df20a8c
cpuidle, intel_idle: Fix CPUIDLE_FLAG_IBRS

objtool to the rescue:

  vmlinux.o: warning: objtool: intel_idle_ibrs+0x17: call to spec_ctrl_current() leaves .noinstr.text section
  vmlinux.o: warning: objtool: intel_idle_ibrs+0x27: call to wrmsrl.constprop.0() leaves .noinstr.text section

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230112195540.556912863@infradead.org
arch/x86/kernel/cpu/bugs.c
drivers/idle/intel_idle.c