intel_idle: Fix intel_idle() vs tracing
authorPeter Zijlstra <peterz@infradead.org>
Fri, 20 Nov 2020 10:28:35 +0000 (11:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Dec 2020 09:58:32 +0000 (10:58 +0100)
commit13158f6fab09eddced10ca607d7c91bd09fa8342
tree0fd7d36e5ea5a6b149e28d57c7c35881a98bfe47
parentfb82d3ac7ec1ffb5f4758b025bfdcd1b82eeddd5
intel_idle: Fix intel_idle() vs tracing

[ Upstream commit 6e1d2bc675bd57640f5658a4a657ae488db4c204 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/idle/intel_idle.c