diff options
| author | Martin J. Bligh <mbligh@aracnet.com> | 2003-01-14 19:29:23 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2003-01-14 19:29:23 -0800 |
| commit | 3bbeca787fe6a6c85292a805124ad6ea23b8bdff (patch) | |
| tree | 61484830817df10623be1de9d5725b835204f7f8 /include | |
| parent | fbf7fcc5074bdc46f959e488bd56909412a5689f (diff) | |
[PATCH] Add ACPI hook, rename raw_phys_apicid to bios_cpu_apicid
Patch from James Cleverdon & John Stultz
This adds machine a type detection hook to the acpi code, and renames
raw_phys_apicid to bios_cpu_apicid (it's an array of apicid's to boot,
indexed by the bios' cpu numbering), and I other large machines will
need to use it later ... not necessarily using physical interrupts.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-i386/mach-bigsmp/mach_apic.h | 4 | ||||
| -rw-r--r-- | include/asm-i386/mach-default/mach_mpparse.h | 6 | ||||
| -rw-r--r-- | include/asm-i386/mach-numaq/mach_mpparse.h | 5 | ||||
| -rw-r--r-- | include/asm-i386/mach-summit/mach_apic.h | 2 | ||||
| -rw-r--r-- | include/asm-i386/mach-summit/mach_mpparse.h | 6 |
5 files changed, 20 insertions, 3 deletions
diff --git a/include/asm-i386/mach-bigsmp/mach_apic.h b/include/asm-i386/mach-bigsmp/mach_apic.h index 96d1658e920f..7607ee0392aa 100644 --- a/include/asm-i386/mach-bigsmp/mach_apic.h +++ b/include/asm-i386/mach-bigsmp/mach_apic.h @@ -67,11 +67,11 @@ static inline int apicid_to_node(int logical_apicid) return 0; } -extern u8 raw_phys_apicid[]; +extern u8 bios_cpu_apicid[]; static inline int cpu_present_to_apicid(int mps_cpu) { - return (int) raw_phys_apicid[mps_cpu]; + return (int) bios_cpu_apicid[mps_cpu]; } static inline unsigned long apicid_to_cpu_present(int phys_apicid) diff --git a/include/asm-i386/mach-default/mach_mpparse.h b/include/asm-i386/mach-default/mach_mpparse.h index 20a41976843d..03b5851506f2 100644 --- a/include/asm-i386/mach-default/mach_mpparse.h +++ b/include/asm-i386/mach-default/mach_mpparse.h @@ -17,4 +17,10 @@ static inline void mps_oem_check(struct mp_config_table *mpc, char *oem, { } +/* Hook from generic ACPI tables.c */ +static inline void acpi_madt_oem_check(char *oem_id, char *oem_table_id) +{ +} + + #endif /* __ASM_MACH_MPPARSE_H */ diff --git a/include/asm-i386/mach-numaq/mach_mpparse.h b/include/asm-i386/mach-numaq/mach_mpparse.h index ddda81a724a8..41c7d08d973d 100644 --- a/include/asm-i386/mach-numaq/mach_mpparse.h +++ b/include/asm-i386/mach-numaq/mach_mpparse.h @@ -34,4 +34,9 @@ static inline void mps_oem_check(struct mp_config_table *mpc, char *oem, mpc->mpc_oemsize); } +/* Hook from generic ACPI tables.c */ +static inline void acpi_madt_oem_check(char *oem_id, char *oem_table_id) +{ +} + #endif /* __ASM_MACH_MPPARSE_H */ diff --git a/include/asm-i386/mach-summit/mach_apic.h b/include/asm-i386/mach-summit/mach_apic.h index 4e5a76aa9e26..4a3d888b66a0 100644 --- a/include/asm-i386/mach-summit/mach_apic.h +++ b/include/asm-i386/mach-summit/mach_apic.h @@ -45,7 +45,7 @@ static inline int apicid_to_node(int logical_apicid) static inline int cpu_present_to_apicid(int mps_cpu) { if (x86_summit) - return (int) raw_phys_apicid[mps_cpu]; + return (int) bios_cpu_apicid[mps_cpu]; else return mps_cpu; } diff --git a/include/asm-i386/mach-summit/mach_mpparse.h b/include/asm-i386/mach-summit/mach_mpparse.h index 7bb66819082f..1d73e88f061a 100644 --- a/include/asm-i386/mach-summit/mach_mpparse.h +++ b/include/asm-i386/mach-summit/mach_mpparse.h @@ -19,4 +19,10 @@ static inline void mps_oem_check(struct mp_config_table *mpc, char *oem, x86_summit = 1; } +/* Hook from generic ACPI tables.c */ +static inline void acpi_madt_oem_check(char *oem_id, char *oem_table_id) +{ + if (!strncmp(oem_id, "IBM", 3) && !strncmp(oem_table_id, "SERVIGIL", 8)) + x86_summit = 1; +} #endif /* __ASM_MACH_MPPARSE_H */ |
