reboot.c (b05005772f34497eb2b7415a651fe785cbe70e16) reboot.c (91b165c0594ab78c64f26d26e3174e6dfd60ed9d)
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"
8#include "asm/smp.h"

--- 8 unchanged lines hidden (view full) ---

17
18#ifdef CONFIG_SMP
19static void kill_idlers(int me)
20{
21#ifdef CONFIG_MODE_TT
22 struct task_struct *p;
23 int i;
24
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"
8#include "asm/smp.h"

--- 8 unchanged lines hidden (view full) ---

17
18#ifdef CONFIG_SMP
19static void kill_idlers(int me)
20{
21#ifdef CONFIG_MODE_TT
22 struct task_struct *p;
23 int i;
24
25 for(i = 0; i < sizeof(idle_threads)/sizeof(idle_threads[0]); i++){
25 for(i = 0; i < ARRAY_SIZE(idle_threads); i++){
26 p = idle_threads[i];
27 if((p != NULL) && (p->thread.mode.tt.extern_pid != me))
28 os_kill_process(p->thread.mode.tt.extern_pid, 0);
29 }
30#endif
31}
32#endif
33

--- 23 unchanged lines hidden (view full) ---

57 uml_cleanup();
58 CHOOSE_MODE(halt_tt(), halt_skas());
59}
60
61void machine_halt(void)
62{
63 machine_power_off();
64}
26 p = idle_threads[i];
27 if((p != NULL) && (p->thread.mode.tt.extern_pid != me))
28 os_kill_process(p->thread.mode.tt.extern_pid, 0);
29 }
30#endif
31}
32#endif
33

--- 23 unchanged lines hidden (view full) ---

57 uml_cleanup();
58 CHOOSE_MODE(halt_tt(), halt_skas());
59}
60
61void machine_halt(void)
62{
63 machine_power_off();
64}
65
66/*
67 * Overrides for Emacs so that we follow Linus's tabbing style.
68 * Emacs will notice this stuff at the end of the file and automatically
69 * adjust the settings for this buffer only. This must remain at the end
70 * of the file.
71 * ---------------------------------------------------------------------------
72 * Local variables:
73 * c-file-style: "linux"
74 * End:
75 */