cpuidle: Fix poll_idle() noinstr annotation
authorPeter Zijlstra <peterz@infradead.org>
Thu, 26 Jan 2023 15:08:38 +0000 (16:08 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 31 Jan 2023 14:01:47 +0000 (15:01 +0100)
commit4d627628d7584f3d3add1d53342d0f01aa878e04
tree9a5efa3170d02f87c19c061750a63b9f119cd345
parent776f22913b8e50011004c6ae43004711dab7efa5
cpuidle: Fix poll_idle() noinstr annotation

The instrumentation_begin()/end() annotations in poll_idle() were
complete nonsense. Specifically they caused tracing to happen in the
middle of noinstr code, resulting in RCU splats.

Now that local_clock() is noinstr, mark up the rest and let it rip.

Fixes: 00717eb8c955 ("cpuidle: Annotate poll_idle()")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/oe-lkp/202301192148.58ece903-oliver.sang@intel.com
Link: https://lore.kernel.org/r/20230126151323.819534689@infradead.org
drivers/cpuidle/cpuidle.c
drivers/cpuidle/poll_state.c