2 * Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #include "linux/module.h"
7 #include "linux/sched.h"
13 #include "choose-mode.h"
16 static void kill_idlers(int me
)
19 struct task_struct
*p
;
22 for(i
= 0; i
< sizeof(idle_threads
)/sizeof(idle_threads
[0]); i
++){
24 if((p
!= NULL
) && (p
->thread
.mode
.tt
.extern_pid
!= me
))
25 os_kill_process(p
->thread
.mode
.tt
.extern_pid
, 0);
31 static void kill_off_processes(void)
33 CHOOSE_MODE(kill_off_processes_tt(), kill_off_processes_skas());
35 kill_idlers(os_getpid());
39 void uml_cleanup(void)
45 void machine_restart(char * __unused
)
49 CHOOSE_MODE(reboot_tt(), reboot_skas());
52 EXPORT_SYMBOL(machine_restart
);
54 void machine_power_off(void)
58 CHOOSE_MODE(halt_tt(), halt_skas());
61 EXPORT_SYMBOL(machine_power_off
);
63 void machine_halt(void)
68 EXPORT_SYMBOL(machine_halt
);
71 * Overrides for Emacs so that we follow Linus's tabbing style.
72 * Emacs will notice this stuff at the end of the file and automatically
73 * adjust the settings for this buffer only. This must remain at the end
75 * ---------------------------------------------------------------------------
77 * c-file-style: "linux"