| * Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com) |
| #include "linux/module.h" |
| static void kill_idlers(int me) |
| for(i = 0; i < sizeof(idle_threads)/sizeof(idle_threads[0]); i++){ |
| if((p != NULL) && (p->thread.mode.tt.extern_pid != me)) |
| os_kill_process(p->thread.mode.tt.extern_pid, 0); |
| static void kill_off_processes(void) |
| CHOOSE_MODE(kill_off_processes_tt(), kill_off_processes_skas()); |
| kill_idlers(os_getpid()); |
| void machine_restart(char * __unused) |
| CHOOSE_MODE(reboot_tt(), reboot_skas()); |
| void machine_power_off(void) |
| CHOOSE_MODE(halt_tt(), halt_skas()); |
| * Overrides for Emacs so that we follow Linus's tabbing style. |
| * Emacs will notice this stuff at the end of the file and automatically |
| * adjust the settings for this buffer only. This must remain at the end |
| * --------------------------------------------------------------------------- |