x86/perf/amd: Remove tracing from perf_lopwr_cb()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 12 Jan 2023 19:43:15 +0000 (20:43 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 13 Jan 2023 10:03:21 +0000 (11:03 +0100)
commit1f7c232ee080f01ded1236685a357f8926e8c7d5
treebdd1dbdc7472ce6c9eb2b1c10f138a1b3cbcdc71
parent28c8e088427ad30b4260953f3b6f908972b77c2d
x86/perf/amd: Remove tracing from perf_lopwr_cb()

The perf_lopwr_cb() function is called from the idle routines; there
is no RCU there, we must not enter tracing.

Use __always_inline, noidle annotations and existing no-trace methods.

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/20230112195539.392862891@infradead.org
arch/x86/events/amd/brs.c
arch/x86/include/asm/perf_event.h