patch-2.4.23 linux-2.4.23/include/asm-x86_64/smp.h
Next file: linux-2.4.23/include/asm-x86_64/system.h
Previous file: linux-2.4.23/include/asm-x86_64/ptrace.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/include/asm-x86_64/smp.h
- Orig date:
2003-08-25 04:44:44.000000000 -0700
diff -urN linux-2.4.22/include/asm-x86_64/smp.h linux-2.4.23/include/asm-x86_64/smp.h
@@ -89,10 +89,8 @@
return GET_APIC_ID(*(unsigned *)(APIC_BASE+APIC_ID));
}
-extern int apic_disabled;
-extern int slow_smp_processor_id(void);
-#define safe_smp_processor_id() \
- (!apic_disabled ? hard_smp_processor_id() : slow_smp_processor_id())
+/* Assume apicid == cpuid */
+#define safe_smp_processor_id() (cpuid_ebx(1) >> 24)
#endif /* !ASSEMBLY */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)