intel_idle: Fix intel_idle() vs tracing
authorPeter Zijlstra <peterz@infradead.org>
Fri, 20 Nov 2020 10:28:35 +0000 (11:28 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 24 Nov 2020 15:47:36 +0000 (16:47 +0100)
commit6e1d2bc675bd57640f5658a4a657ae488db4c204
tree2184496c918031ffc2b71eba9a6ba4c9b2e457a3
parent58c644ba512cfbc2e39b758dd979edd1d6d00e27
intel_idle: Fix intel_idle() vs tracing

cpuidle->enter() callbacks should not call into tracing because RCU
has already been disabled. Instead of doing the broadcast thing
itself, simply advertise to the cpuidle core that those states stop
the timer.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lkml.kernel.org/r/20201123143510.GR3021@hirez.programming.kicks-ass.net
drivers/idle/intel_idle.c