diff options
author | jdike <jdike> | 2003-08-29 16:44:27 +0000 |
---|---|---|
committer | jdike <jdike> | 2003-08-29 16:44:27 +0000 |
commit | f866b36b98c39fb08a6726cdb9ac17d243739979 (patch) | |
tree | ad106dab01b25b0315f66bad95bbecc5641a9294 | |
parent | b04ac96add7fafe4c9b7b86640365eedb6094ca6 (diff) | |
download | uml-history-f866b36b98c39fb08a6726cdb9ac17d243739979.tar.gz |
Fixed some compile bugs.
-rw-r--r-- | arch/um/kernel/reboot.c | 2 | ||||
-rw-r--r-- | arch/um/kernel/smp.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/um/kernel/reboot.c b/arch/um/kernel/reboot.c index 081f764..310f6e5 100644 --- a/arch/um/kernel/reboot.c +++ b/arch/um/kernel/reboot.c @@ -14,6 +14,7 @@ #ifdef CONFIG_SMP static void kill_idlers(int me) { +#ifdef CONFIG_MODE_TT struct task_struct *p; int i; @@ -23,6 +24,7 @@ static void kill_idlers(int me) (p->thread.mode.tt.extern_pid != -1)) os_kill_process(p->thread.mode.tt.extern_pid, 0); } +#endif } #endif diff --git a/arch/um/kernel/smp.c b/arch/um/kernel/smp.c index 500b868..869ea6e 100644 --- a/arch/um/kernel/smp.c +++ b/arch/um/kernel/smp.c @@ -118,6 +118,7 @@ void smp_commence(void) static int idle_proc(void *unused) { +#ifndef CONFIG_MODE_SKAS int cpu, err; set_current(current); @@ -144,11 +145,13 @@ static int idle_proc(void *unused) init_idle(); cpu_idle(); +#endif return(0); } static int idle_thread(int (*fn)(void *), int cpu) { +#ifndef CONFIG_MODE_SKAS struct task_struct *new_task; int pid; unsigned char c; @@ -171,10 +174,14 @@ static int idle_thread(int (*fn)(void *), int cpu) sizeof(c)), ({ panic("skas mode doesn't support SMP"); })); return(new_task->thread.mode.tt.extern_pid); +#else + panic("idle_thread called with skas mode enabled"); +#endif } void smp_boot_cpus(void) { +#ifndef CONFIG_MODE_SKAS int err; set_bit(0, &cpu_online_map); @@ -225,6 +232,7 @@ void smp_boot_cpus(void) } } } +#endif } int setup_profiling_timer(unsigned int multiplier) |