summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-07-17 02:46:41 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-07-17 02:46:41 +0000
commit6849dcb261e849b6d1503df564f8e27708844bda (patch)
treea03d16c25731dfd6cb78a36de578eacb4de073d9
parentf1da2c3860e301527d56a1ef0b56c649ee7c4b1b (diff)
Fix a (harmless) typo in the SMP save_and_cli definition. Also, mark
the irqlock as not held by anyone initially. This allows SMP kernels to boot up.
-rw-r--r--arch/mips64/kernel/smp.c1
-rw-r--r--include/asm-mips64/system.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips64/kernel/smp.c b/arch/mips64/kernel/smp.c
index e1aedbb10..c36337564 100644
--- a/arch/mips64/kernel/smp.c
+++ b/arch/mips64/kernel/smp.c
@@ -71,7 +71,6 @@ void __init smp_boot_cpus(void)
extern void allowboot(void);
init_new_context(current, &init_mm);
- global_irq_holder = 0;
current->processor = 0;
init_idle();
smp_tune_scheduling();
diff --git a/include/asm-mips64/system.h b/include/asm-mips64/system.h
index 3592b3821..47e90aec4 100644
--- a/include/asm-mips64/system.h
+++ b/include/asm-mips64/system.h
@@ -117,7 +117,7 @@ extern void __global_restore_flags(unsigned long);
#define sti() __global_sti()
#define save_flags(x) ((x)=__global_save_flags())
#define restore_flags(x) __global_restore_flags(x)
-#define save_and_cli(x) do { save_flags(flags); cli(); } while(0)
+#define save_and_cli(x) do { save_flags(x); cli(); } while(0)
#else