diff options
Diffstat (limited to 'arch/cris/arch-v32/kernel/process.c')
-rw-r--r-- | arch/cris/arch-v32/kernel/process.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/cris/arch-v32/kernel/process.c b/arch/cris/arch-v32/kernel/process.c index 2b23ef0e4452..4857933d59f4 100644 --- a/arch/cris/arch-v32/kernel/process.c +++ b/arch/cris/arch-v32/kernel/process.c | |||
@@ -20,16 +20,14 @@ | |||
20 | 20 | ||
21 | extern void stop_watchdog(void); | 21 | extern void stop_watchdog(void); |
22 | 22 | ||
23 | extern int cris_hlt_counter; | ||
24 | |||
25 | /* We use this if we don't have any better idle routine. */ | 23 | /* We use this if we don't have any better idle routine. */ |
26 | void default_idle(void) | 24 | void default_idle(void) |
27 | { | 25 | { |
28 | local_irq_disable(); | 26 | local_irq_disable(); |
29 | if (!need_resched() && !cris_hlt_counter) { | 27 | if (!need_resched()) { |
30 | /* Halt until exception. */ | 28 | /* Halt until exception. */ |
31 | __asm__ volatile("ei \n\t" | 29 | __asm__ volatile("ei \n\t" |
32 | "halt "); | 30 | "halt "); |
33 | } | 31 | } |
34 | local_irq_enable(); | 32 | local_irq_enable(); |
35 | } | 33 | } |