Skip to content

Commit

Permalink
cris idle: delete idle and pm_idle
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Len Brown committed Feb 18, 2013
1 parent dc883ca commit 28f1418
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions arch/cris/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ void enable_hlt(void)

EXPORT_SYMBOL(enable_hlt);

/*
* The following aren't currently used.
*/
void (*pm_idle)(void);

extern void default_idle(void);

void (*pm_power_off)(void);
Expand All @@ -77,16 +72,12 @@ void cpu_idle (void)
while (1) {
rcu_idle_enter();
while (!need_resched()) {
void (*idle)(void);
/*
* Mark this as an RCU critical section so that
* synchronize_kernel() in the unload path waits
* for our completion.
*/
idle = pm_idle;
if (!idle)
idle = default_idle;
idle();
default_idle();
}
rcu_idle_exit();
schedule_preempt_disabled();
Expand Down

0 comments on commit 28f1418

Please sign in to comment.