diff options
Diffstat (limited to 'arch/um/kernel/reboot.c')
-rw-r--r-- | arch/um/kernel/reboot.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/um/kernel/reboot.c b/arch/um/kernel/reboot.c index 7e4305a1fd3c..93df0672d022 100644 --- a/arch/um/kernel/reboot.c +++ b/arch/um/kernel/reboot.c | |||
@@ -14,28 +14,9 @@ | |||
14 | 14 | ||
15 | void (*pm_power_off)(void); | 15 | void (*pm_power_off)(void); |
16 | 16 | ||
17 | #ifdef CONFIG_SMP | ||
18 | static void kill_idlers(int me) | ||
19 | { | ||
20 | #ifdef CONFIG_MODE_TT | ||
21 | struct task_struct *p; | ||
22 | int i; | ||
23 | |||
24 | for(i = 0; i < ARRAY_SIZE(idle_threads); i++){ | ||
25 | p = idle_threads[i]; | ||
26 | if((p != NULL) && (p->thread.mode.tt.extern_pid != me)) | ||
27 | os_kill_process(p->thread.mode.tt.extern_pid, 0); | ||
28 | } | ||
29 | #endif | ||
30 | } | ||
31 | #endif | ||
32 | |||
33 | static void kill_off_processes(void) | 17 | static void kill_off_processes(void) |
34 | { | 18 | { |
35 | CHOOSE_MODE(kill_off_processes_tt(), kill_off_processes_skas()); | 19 | CHOOSE_MODE(kill_off_processes_tt(), kill_off_processes_skas()); |
36 | #ifdef CONFIG_SMP | ||
37 | kill_idlers(os_getpid()); | ||
38 | #endif | ||
39 | } | 20 | } |
40 | 21 | ||
41 | void uml_cleanup(void) | 22 | void uml_cleanup(void) |