Skip to content

Commit 28f1418

Browse files
committed
cris idle: delete idle and pm_idle
pm_idle() and idle() served no purpose on cris -- invoke default_idle() directly. Signed-off-by: Len Brown <len.brown@intel.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
1 parent dc883ca commit 28f1418

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

‎arch/cris/kernel/process.c‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ void enable_hlt(void)
5454

5555
EXPORT_SYMBOL(enable_hlt);
5656

57-
/*
58-
* The following aren't currently used.
59-
*/
60-
void (*pm_idle)(void);
61-
6257
extern void default_idle(void);
6358

6459
void (*pm_power_off)(void);
@@ -77,16 +72,12 @@ void cpu_idle (void)
7772
while (1) {
7873
rcu_idle_enter();
7974
while (!need_resched()) {
80-
void (*idle)(void);
8175
/*
8276
* Mark this as an RCU critical section so that
8377
* synchronize_kernel() in the unload path waits
8478
* for our completion.
8579
*/
86-
idle = pm_idle;
87-
if (!idle)
88-
idle = default_idle;
89-
idle();
80+
default_idle();
9081
}
9182
rcu_idle_exit();
9283
schedule_preempt_disabled();

0 commit comments

Comments
 (0)