blob: 135f3892d6df97f5760e43440a53ea994945494b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
* linux/include/asm-arm/arch-rpc/system.h
*
* Copyright (c) 1996-1999 Russell King.
*/
#include <asm/arch/hardware.h>
#include <asm/iomd.h>
#include <asm/io.h>
extern __inline__ void arch_idle(void)
{
unsigned long start_idle;
start_idle = jiffies;
do {
if (current->need_resched || hlt_counter)
goto slow_out;
cpu_do_idle(IDLE_WAIT_FAST);
} while (time_before(start_idle, jiffies + HZ/3));
cpu_do_idle(IDLE_CLOCK_SLOW);
while (!current->need_resched && !hlt_counter) {
cpu_do_idle(IDLE_WAIT_SLOW);
}
cpu_do_idle(IDLE_CLOCK_FAST);
slow_out:
}
#define arch_power_off() do { } while (0)
extern __inline__ void arch_reset(char mode)
{
extern void ecard_reset(int card);
ecard_reset(-1);
outb(0, IOMD_ROMCR0);
/*
* Jump into the ROM
*/
cpu_reset(0);
}
|