uml: throw out CONFIG_MODE_TT
[deliverable/linux.git] / arch / um / kernel / reboot.c
CommitLineData
1da177e4
LT
1/*
2 * Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#include "linux/module.h"
7#include "linux/sched.h"
72e55257 8#include "asm/smp.h"
1da177e4
LT
9#include "kern_util.h"
10#include "kern.h"
11#include "os.h"
12#include "mode.h"
13#include "choose-mode.h"
14
5e38291d
EB
15void (*pm_power_off)(void);
16
1da177e4
LT
17static void kill_off_processes(void)
18{
19 CHOOSE_MODE(kill_off_processes_tt(), kill_off_processes_skas());
1da177e4
LT
20}
21
22void uml_cleanup(void)
23{
026549d2 24 kmalloc_ok = 0;
1da177e4 25 do_uml_exitcalls();
026549d2 26 kill_off_processes();
1da177e4
LT
27}
28
29void machine_restart(char * __unused)
30{
026549d2 31 uml_cleanup();
1da177e4
LT
32 CHOOSE_MODE(reboot_tt(), reboot_skas());
33}
34
1da177e4
LT
35void machine_power_off(void)
36{
026549d2 37 uml_cleanup();
1da177e4
LT
38 CHOOSE_MODE(halt_tt(), halt_skas());
39}
40
1da177e4
LT
41void machine_halt(void)
42{
43 machine_power_off();
44}
This page took 0.399166 seconds and 5 git commands to generate.