patch-2.3.99-pre7 linux/arch/sparc64/prom/misc.c
Next file: linux/arch/sparc64/solaris/fs.c
Previous file: linux/arch/sparc64/mm/ultra.S
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Mon May 8 22:00:01 2000
- Orig file:
v2.3.99-pre6/linux/arch/sparc64/prom/misc.c
- Orig date:
Wed Apr 26 16:34:07 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/arch/sparc64/prom/misc.c linux/arch/sparc64/prom/misc.c
@@ -39,7 +39,7 @@
extern int serial_console;
#endif
-#ifdef __SMP__
+#ifdef CONFIG_SMP
extern void smp_capture(void);
extern void smp_release(void);
#endif
@@ -63,7 +63,7 @@
* So in order for everything to work reliably, even
* on SMP, we need to drop the IRQ locks we hold.
*/
-#ifdef __SMP__
+#ifdef CONFIG_SMP
irq_exit(smp_processor_id(), 0);
smp_capture();
#else
@@ -72,7 +72,7 @@
p1275_cmd ("enter", P1275_INOUT(0,0));
-#ifdef __SMP__
+#ifdef CONFIG_SMP
smp_release();
irq_enter(smp_processor_id(), 0);
spin_unlock_wait(&__br_write_locks[BR_GLOBALIRQ_LOCK].lock);
@@ -88,7 +88,7 @@
__restore_flags(flags);
}
-#ifdef __SMP__
+#ifdef CONFIG_SMP
extern void smp_promstop_others(void);
#endif
@@ -98,7 +98,7 @@
void
prom_halt(void)
{
-#ifdef __SMP__
+#ifdef CONFIG_SMP
smp_promstop_others();
udelay(8000);
#endif
@@ -328,7 +328,7 @@
return p1275_cmd("SUNW,wakeup-system", P1275_INOUT(0, 1));
}
-#ifdef __SMP__
+#ifdef CONFIG_SMP
void prom_startcpu(int cpunode, unsigned long pc, unsigned long o0)
{
p1275_cmd("SUNW,start-cpu", P1275_INOUT(3, 0), cpunode, pc, o0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)