Skip to content

Commit dc883ca

Browse files
committed
ARM64 idle: delete pm_idle
pm_idle() on arm64 was a synonym for default_idle(), so remove it and invoke default_idle() directly. Signed-off-by: Len Brown <len.brown@intel.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent b0ea114 commit dc883ca

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

‎arch/arm64/kernel/process.c‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,9 @@ static void default_idle(void)
9797
local_irq_enable();
9898
}
9999

100-
void (*pm_idle)(void) = default_idle;
101-
EXPORT_SYMBOL_GPL(pm_idle);
102-
103100
/*
104-
* The idle thread, has rather strange semantics for calling pm_idle,
105-
* but this is what x86 does and we need to do the same, so that
106-
* things like cpuidle get called in the same way. The only difference
107-
* is that we always respect 'hlt_counter' to prevent low power idle.
101+
* The idle thread.
102+
* We always respect 'hlt_counter' to prevent low power idle.
108103
*/
109104
void cpu_idle(void)
110105
{
@@ -122,10 +117,10 @@ void cpu_idle(void)
122117
local_irq_disable();
123118
if (!need_resched()) {
124119
stop_critical_timings();
125-
pm_idle();
120+
default_idle();
126121
start_critical_timings();
127122
/*
128-
* pm_idle functions should always return
123+
* default_idle functions should always return
129124
* with IRQs enabled.
130125
*/
131126
WARN_ON(irqs_disabled());

0 commit comments

Comments
 (0)