File: /usr/src/linux/include/asm-arm/arch-tbox/system.h

1     /*
2      * linux/include/asm-arm/arch-tbox/system.h
3      *
4      * Copyright (c) 1996-1999 Russell King.
5      */
6     #ifndef __ASM_ARCH_SYSTEM_H
7     #define __ASM_ARCH_SYSTEM_H
8     
9     static void arch_idle(void)
10     {
11     	unsigned long start_idle;
12     
13     	start_idle = jiffies;
14     
15     	do {
16     		if (current->need_resched || hlt_counter)
17     			goto slow_out;
18     		cpu_do_idle(IDLE_WAIT_FAST);
19     	} while (time_before(jiffies, start_idle + HZ/50));
20     
21     	cpu_do_idle(IDLE_CLOCK_SLOW);
22     
23     	while (!current->need_resched && !hlt_counter) {
24     		cpu_do_idle(IDLE_WAIT_SLOW);
25     	}
26     
27     	cpu_do_idle(IDLE_CLOCK_FAST);
28     slow_out:
29     }
30     
31     #define arch_reset(mode)	do { } while (0)
32     
33     #endif
34