diff options
Diffstat (limited to 'arch/um/kernel/reboot.c')
-rw-r--r-- | arch/um/kernel/reboot.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/um/kernel/reboot.c b/arch/um/kernel/reboot.c index f3bd18bbf07f..9d8eea47a0fc 100644 --- a/arch/um/kernel/reboot.c +++ b/arch/um/kernel/reboot.c | |||
@@ -1,13 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com) | 2 | * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
3 | * Licensed under the GPL | 3 | * Licensed under the GPL |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include "linux/module.h" | ||
7 | #include "linux/sched.h" | 6 | #include "linux/sched.h" |
8 | #include "asm/smp.h" | ||
9 | #include "kern_util.h" | ||
10 | #include "kern.h" | ||
11 | #include "os.h" | 7 | #include "os.h" |
12 | #include "skas.h" | 8 | #include "skas.h" |
13 | 9 | ||
@@ -37,20 +33,20 @@ static void kill_off_processes(void) | |||
37 | 33 | ||
38 | void uml_cleanup(void) | 34 | void uml_cleanup(void) |
39 | { | 35 | { |
40 | kmalloc_ok = 0; | 36 | kmalloc_ok = 0; |
41 | do_uml_exitcalls(); | 37 | do_uml_exitcalls(); |
42 | kill_off_processes(); | 38 | kill_off_processes(); |
43 | } | 39 | } |
44 | 40 | ||
45 | void machine_restart(char * __unused) | 41 | void machine_restart(char * __unused) |
46 | { | 42 | { |
47 | uml_cleanup(); | 43 | uml_cleanup(); |
48 | reboot_skas(); | 44 | reboot_skas(); |
49 | } | 45 | } |
50 | 46 | ||
51 | void machine_power_off(void) | 47 | void machine_power_off(void) |
52 | { | 48 | { |
53 | uml_cleanup(); | 49 | uml_cleanup(); |
54 | halt_skas(); | 50 | halt_skas(); |
55 | } | 51 | } |
56 | 52 | ||