uml: throw out CHOOSE_MODE
[firewire-audio.git] / arch / um / kernel / reboot.c
blob4a0def32e32327edf4f586e421e97a60b4f92617
1 /*
2 * Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #include "linux/module.h"
7 #include "linux/sched.h"
8 #include "asm/smp.h"
9 #include "kern_util.h"
10 #include "kern.h"
11 #include "os.h"
12 #include "mode.h"
14 void (*pm_power_off)(void);
16 static void kill_off_processes(void)
18 kill_off_processes_skas();
21 void uml_cleanup(void)
23 kmalloc_ok = 0;
24 do_uml_exitcalls();
25 kill_off_processes();
28 void machine_restart(char * __unused)
30 uml_cleanup();
31 reboot_skas();
34 void machine_power_off(void)
36 uml_cleanup();
37 halt_skas();
40 void machine_halt(void)
42 machine_power_off();