summaryrefslogtreecommitdiffstats
path: root/arch/mips64/kernel/smp.c
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-04-22 18:31:40 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-04-22 18:31:40 +0000
commitdc91613ed65a1549d9ca21bf489c3f55f34f2dd6 (patch)
treef9880ba42e57d38c5c12da697e36bfe2b413889a /arch/mips64/kernel/smp.c
parente107a626e4dd3fbcac5e5e63cafd3d7c1470dfe4 (diff)
Per cpu tlbpid (asid) management for SMP. The asid cache is now per
cpu, and stays in cpu_data[].
Diffstat (limited to 'arch/mips64/kernel/smp.c')
-rw-r--r--arch/mips64/kernel/smp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips64/kernel/smp.c b/arch/mips64/kernel/smp.c
index 963d57379..9507f2342 100644
--- a/arch/mips64/kernel/smp.c
+++ b/arch/mips64/kernel/smp.c
@@ -11,6 +11,7 @@
#include <asm/system.h>
#include <asm/hardirq.h>
#include <asm/softirq.h>
+#include <asm/mmu_context.h>
#ifdef CONFIG_SGI_IP27
@@ -68,12 +69,14 @@ static void smp_tune_scheduling (void)
void __init smp_boot_cpus(void)
{
extern void allowboot(void);
+ extern int maxcpus;
+ init_new_context(current, &init_mm);
global_irq_holder = 0;
current->processor = 0;
init_idle();
smp_tune_scheduling();
- smp_num_cpus = 1; /* for now */
+ smp_num_cpus = 1; /* maxcpus; */
allowboot();
}