Skip to content
Commit 9ccdac36 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM] idle: clean up pm_idle calling, obey hlt_counter



pm_idle is used by infrastructure (eg, cpuidle) which expects architectures
to call it in a certain way.  Arrange for ARM to follow x86's lead on this
and call pm_idle() with interrupts already disabled.  However, we expect
pm_idle() to enable interrupts before it returns.

Also, OMAP wants to be able to disable hlt-ing, so allow hlt_counter to
prevent all calls to pm_idle.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 915166d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment