Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351087
b: refs/heads/master
c: 3738fa5
h: refs/heads/master
i:
  351085: 7e5e87c
  351083: 0dc1eab
  351079: 094ac2d
  351071: 89ddfc8
v: v3
  • Loading branch information
Len Brown committed Feb 18, 2013
1 parent d7ff059 commit 2812928
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a476bda30baf7efa7f305793a340aae07b6e5780
refs/heads/master: 3738fa5bbc3acaf6a807cb45f4367cbab412faee
12 changes: 6 additions & 6 deletions trunk/arch/sh/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <asm/smp.h>
#include <asm/bl_bit.h>

void (*pm_idle)(void);
static void (*sh_idle)(void);

static int hlt_counter;

Expand Down Expand Up @@ -103,9 +103,9 @@ void cpu_idle(void)
/* Don't trace irqs off for idle */
stop_critical_timings();
if (cpuidle_idle_call())
pm_idle();
sh_idle();
/*
* Sanity check to ensure that pm_idle() returns
* Sanity check to ensure that sh_idle() returns
* with IRQs enabled
*/
WARN_ON(irqs_disabled());
Expand All @@ -123,13 +123,13 @@ void __init select_idle_routine(void)
/*
* If a platform has set its own idle routine, leave it alone.
*/
if (pm_idle)
if (sh_idle)
return;

if (hlt_works())
pm_idle = default_idle;
sh_idle = default_idle;
else
pm_idle = poll_idle;
sh_idle = poll_idle;
}

void stop_this_cpu(void *unused)
Expand Down

0 comments on commit 2812928

Please sign in to comment.