Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lm32: Fix idle function

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
  • Loading branch information...
commit 064001a258a8be3556baa9fe289a388cfcebe5dc 1 parent 69bceed
Lars-Peter Clausen larsclausen authored
Showing with 3 additions and 23 deletions.
  1. +3 −23 arch/lm32/kernel/process.c
26 arch/lm32/kernel/process.c
View
@@ -54,30 +54,10 @@ asmlinkage void syscall_tail(void);
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);
-/*
- * The idle loop on an LM32
- */
-static void default_idle(void)
-{
- while(!need_resched())
- __asm__ __volatile__("and r0, r0, r0" ::: "memory");
-}
-
-/*
- * The idle thread. There's no useful work to be
- * done, so just try to conserve power and have a
- * low exit latency (ie sit in a loop waiting for
- * somebody to say that they'd like to reschedule)
- */
-void cpu_idle(void)
+void arch_cpu_idle(void)
{
- /* endless idle loop with no priority at all */
- while (1) {
- default_idle();
- preempt_enable_no_resched();
- schedule();
- preempt_disable();
- }
+ __asm__ __volatile__("and r0, r0, r0" ::: "memory");
+ local_irq_enable();
}
void __weak machine_restart(char * __unused)
Please sign in to comment.
Something went wrong with that request. Please try again.