]> 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)
commita810a29a40941c46da0fc0dec1cd24c0ccd1aa80
treea4b391660c689711f1523c8a8818f03fbdb18eb0
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
cpuidle,intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE

Commit a3efc206e30d ("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: a3efc206e30d ("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