diff options
Diffstat (limited to 'arch/mips/sni/reset.c')
-rw-r--r-- | arch/mips/sni/reset.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/sni/reset.c b/arch/mips/sni/reset.c index be85bec002e1..2eada8aea682 100644 --- a/arch/mips/sni/reset.c +++ b/arch/mips/sni/reset.c | |||
@@ -13,12 +13,11 @@ | |||
13 | * controller to pulse the reset-line low. We try that for a while, | 13 | * controller to pulse the reset-line low. We try that for a while, |
14 | * and if it doesn't work, we do some other stupid things. | 14 | * and if it doesn't work, we do some other stupid things. |
15 | */ | 15 | */ |
16 | static inline void | 16 | static inline void kb_wait(void) |
17 | kb_wait(void) | ||
18 | { | 17 | { |
19 | int i; | 18 | int i; |
20 | 19 | ||
21 | for (i=0; i<0x10000; i++) | 20 | for (i = 0; i < 0x10000; i++) |
22 | if ((inb_p(0x64) & 0x02) == 0) | 21 | if ((inb_p(0x64) & 0x02) == 0) |
23 | break; | 22 | break; |
24 | } | 23 | } |
@@ -32,9 +31,9 @@ void sni_machine_restart(char *command) | |||
32 | We can do that easier ... */ | 31 | We can do that easier ... */ |
33 | local_irq_disable(); | 32 | local_irq_disable(); |
34 | for (;;) { | 33 | for (;;) { |
35 | for (i=0; i<100; i++) { | 34 | for (i = 0; i < 100; i++) { |
36 | kb_wait(); | 35 | kb_wait(); |
37 | for(j = 0; j < 100000 ; j++) | 36 | for (j = 0; j < 100000 ; j++) |
38 | /* nothing */; | 37 | /* nothing */; |
39 | outb_p(0xfe,0x64); /* pulse reset low */ | 38 | outb_p(0xfe,0x64); /* pulse reset low */ |
40 | } | 39 | } |