powerpc/64: Mark prep_irq_for_idle() __cpuidle
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 6 Apr 2023 14:45:32 +0000 (00:45 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Apr 2023 03:21:49 +0000 (13:21 +1000)
commit7640854d966449e5befeff02c45c799cfc3d4fcf
tree43b869931f52e74c753341fda1224f60c0cd1b18
parente5b6634aa1bcbd43120b2fd6f15780f00e9e7f66
powerpc/64: Mark prep_irq_for_idle() __cpuidle

Code in the idle path is not allowed to be instrumented because RCU is
disabled, see commit 0e985e9d2286 ("cpuidle: Add comments about
noinstr/__cpuidle usage").

Mark prep_irq_for_idle() __cpuidle, which is equivalent to noinstr, to
enforce that.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230406144535.3786008-1-mpe@ellerman.id.au
arch/powerpc/kernel/irq_64.c