summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-02-03 23:52:48 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-02-03 23:52:48 +0000
commit9193bdff22d3d2b6d612d9d8b4b2bf62f38b79a1 (patch)
treea9a409bb241710e6a125b8773430492e5122460a
parent825423e4c4f18289df2393951cfd2a7a31fc0464 (diff)
Changes for the sake of IBM's multiqueue scheduler patch.
-rw-r--r--arch/mips64/kernel/smp.c2
-rw-r--r--arch/mips64/sgi-ip27/ip27-init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips64/kernel/smp.c b/arch/mips64/kernel/smp.c
index 655d2add2..94673e078 100644
--- a/arch/mips64/kernel/smp.c
+++ b/arch/mips64/kernel/smp.c
@@ -57,7 +57,7 @@ spinlock_t kernel_flag = SPIN_LOCK_UNLOCKED;
int smp_threads_ready; /* Not used */
atomic_t smp_commenced = ATOMIC_INIT(0);
struct cpuinfo_mips cpu_data[NR_CPUS];
-int smp_num_cpus; /* Number that came online. */
+int smp_num_cpus = 1; /* Number that came online. */
int __cpu_number_map[NR_CPUS];
int __cpu_logical_map[NR_CPUS];
cycles_t cacheflush_time;
diff --git a/arch/mips64/sgi-ip27/ip27-init.c b/arch/mips64/sgi-ip27/ip27-init.c
index fdc3fdf27..c103969f3 100644
--- a/arch/mips64/sgi-ip27/ip27-init.c
+++ b/arch/mips64/sgi-ip27/ip27-init.c
@@ -472,9 +472,9 @@ void allowboot(void)
sprintf(p->comm, "%s%d", "Idle", num_cpus);
init_tasks[num_cpus] = p;
alloc_cpupda(cpu, num_cpus);
+ del_from_runqueue(p);
p->processor = num_cpus;
p->has_cpu = 1; /* we schedule the first task manually */
- del_from_runqueue(p);
unhash_process(p);
/* Attach to the address space of init_task. */
atomic_inc(&init_mm.mm_count);