|
@@ -173,6 +173,8 @@ extern int safe_smp_processor_id(void);
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#include <asm/genapic.h>
|
|
|
|
+
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
|
|
|
|
|
#ifndef CONFIG_X86_64
|
|
#ifndef CONFIG_X86_64
|
|
@@ -182,7 +184,6 @@ static inline int logical_smp_processor_id(void)
|
|
return GET_APIC_LOGICAL_ID(*(u32 *)(APIC_BASE + APIC_LDR));
|
|
return GET_APIC_LOGICAL_ID(*(u32 *)(APIC_BASE + APIC_LDR));
|
|
}
|
|
}
|
|
|
|
|
|
-#include <mach_apicdef.h>
|
|
|
|
static inline unsigned int read_apic_id(void)
|
|
static inline unsigned int read_apic_id(void)
|
|
{
|
|
{
|
|
unsigned int reg;
|
|
unsigned int reg;
|
|
@@ -197,7 +198,6 @@ static inline unsigned int read_apic_id(void)
|
|
# if defined(APIC_DEFINITION) || defined(CONFIG_X86_64)
|
|
# if defined(APIC_DEFINITION) || defined(CONFIG_X86_64)
|
|
extern int hard_smp_processor_id(void);
|
|
extern int hard_smp_processor_id(void);
|
|
# else
|
|
# else
|
|
-#include <mach_apicdef.h>
|
|
|
|
static inline int hard_smp_processor_id(void)
|
|
static inline int hard_smp_processor_id(void)
|
|
{
|
|
{
|
|
/* we don't want to mark this access volatile - bad code generation */
|
|
/* we don't want to mark this access volatile - bad code generation */
|