]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle,intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE
authorPeter Zijlstra <peterz@infradead.org>
Wed, 8 Jun 2022 14:27:27 +0000 (16:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Jun 2022 16:05:45 +0000 (18:05 +0200)
commit32d4fd5751eadbe1823a37eb38df85ec5c8e6207
treea4b391660c689711f1523c8a8818f03fbdb18eb0
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
cpuidle,intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE

Commit c227233ad64c ("intel_idle: enable interrupts before C1 on
Xeons") wrecked intel_idle in two ways:

 - must not have tracing in idle functions
 - must return with IRQs disabled

Additionally, it added a branch for no good reason.

Fixes: c227233ad64c ("intel_idle: enable interrupts before C1 on Xeons")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
[ rjw: Moved the intel_idle() kerneldoc comment next to the function ]
Cc: 5.16+ <stable@vger.kernel.org> # 5.16+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c