cpuidle: Ensure ct_cpuidle_enter() is always called from noinstr/__cpuidle
authorPeter Zijlstra <peterz@infradead.org>
Thu, 12 Jan 2023 19:44:01 +0000 (20:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 13 Jan 2023 10:48:17 +0000 (11:48 +0100)
commit17cc2b5525856d7374f09b28ba1faf1fa61b2352
tree843bdd2f5083f11af0b96765c80a5d562544cc0d
parent1c38b0615f84f622cd6c821aa40be60fc7f7a096
cpuidle: Ensure ct_cpuidle_enter() is always called from noinstr/__cpuidle

Tracing (kprobes included) and other compiler instrumentation relies
on a normal kernel runtime. Therefore all functions that disable RCU
should be noinstr, as should all functions that are called while RCU
is disabled.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230112195542.212914195@infradead.org
drivers/cpuidle/cpuidle.c