Import 2.4.0-test5pre3
[davej-history.git] / include / asm-arm / arch-ebsa110 / system.h
blob76bd8c2e30dfe9a8a975d550589b1c46963bc7c6
1 /*
2 * linux/include/asm-arm/arch-ebsa110/system.h
4 * Copyright (c) 1996-1999 Russell King.
5 */
6 #ifndef __ASM_ARCH_SYSTEM_H
7 #define __ASM_ARCH_SYSTEM_H
9 /*
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;
17 start_idle = jiffies;
19 do {
20 if (current->need_resched || hlt_counter)
21 goto slow_out;
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);
31 slow_out:
34 #define arch_reset(mode) cpu_reset(0x80000000)
36 #endif