2 * linux/include/asm-arm/arch-ebsa110/system.h
4 * Copyright (c) 1996-1999 Russell King.
6 #ifndef __ASM_ARCH_SYSTEM_H
7 #define __ASM_ARCH_SYSTEM_H
10 * This machine must never stop it MCLK. However, if we are
11 * idle for a long time, slow the processor clock to MCLK.
13 static void arch_idle(void)
15 unsigned long start_idle
;
20 if (current
->need_resched
|| hlt_counter
)
22 } while (time_before(start_idle
, jiffies
+ HZ
/3));
24 cpu_do_idle(IDLE_CLOCK_SLOW
);
26 while (!current
->need_resched
&& !hlt_counter
) {
27 /* do nothing slowly */
30 cpu_do_idle(IDLE_CLOCK_FAST
);
34 #define arch_reset(mode) cpu_reset(0x80000000)