patch-2.4.19 linux-2.4.19/include/asm-s390/lowcore.h
Next file: linux-2.4.19/include/asm-s390/page.h
Previous file: linux-2.4.19/include/asm-s390/irq.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/asm-s390/lowcore.h
- Orig date:
Mon Feb 25 11:38:13 2002
diff -urN linux-2.4.18/include/asm-s390/lowcore.h linux-2.4.19/include/asm-s390/lowcore.h
@@ -185,12 +185,12 @@
extern struct _lowcore *lowcore_ptr[];
#ifndef CONFIG_SMP
-#define get_cpu_lowcore(cpu) S390_lowcore
-#define safe_get_cpu_lowcore(cpu) S390_lowcore
+#define get_cpu_lowcore(cpu) (&S390_lowcore)
+#define safe_get_cpu_lowcore(cpu) (&S390_lowcore)
#else
-#define get_cpu_lowcore(cpu) (*lowcore_ptr[cpu])
+#define get_cpu_lowcore(cpu) (lowcore_ptr[(cpu)])
#define safe_get_cpu_lowcore(cpu) \
- ((cpu)==smp_processor_id() ? S390_lowcore:(*lowcore_ptr[(cpu)]))
+ ((cpu) == smp_processor_id() ? &S390_lowcore : lowcore_ptr[(cpu)])
#endif
#endif /* __ASSEMBLY__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)