diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 21:43:47 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:12 -0500 |
commit | 306db03b0d71bf9c94155c0c4771a79fc70b4b27 (patch) | |
tree | 060e085368664f142013b65cbc0271a704b7dbc3 /arch/x86/include | |
parent | 9a6801da55e4a4492e8f666ac272efe8186682c8 (diff) |
x86: clean up apic->acpi_madt_oem_check methods
Impact: refactor code
x86 subarchitectures each defined a "acpi_madt_oem_check()" method,
which could be an inline function, or an extern, or a static function,
and which was also the name of a genapic field.
Untangle this namespace spaghetti by setting ->acpi_madt_oem_check()
to NULL on those subarchitectures that have no detection quirks,
and rename the other ones (summit, es7000) that do.
Also change default_acpi_madt_oem_check() to handle NULL entries,
and clean its control flow up as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/es7000/mpparse.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/genapic.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_mpparse.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_mpparse.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/summit/mpparse.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/es7000/mpparse.h b/arch/x86/include/asm/es7000/mpparse.h index c1629b090ec2..30692c4ae859 100644 --- a/arch/x86/include/asm/es7000/mpparse.h +++ b/arch/x86/include/asm/es7000/mpparse.h | |||
@@ -9,7 +9,7 @@ extern void unmap_unisys_acpi_oem_table(unsigned long oem_addr); | |||
9 | extern void setup_unisys(void); | 9 | extern void setup_unisys(void); |
10 | 10 | ||
11 | #ifndef CONFIG_X86_GENERICARCH | 11 | #ifndef CONFIG_X86_GENERICARCH |
12 | extern int acpi_madt_oem_check(char *oem_id, char *oem_table_id); | 12 | extern int default_acpi_madt_oem_check(char *oem_id, char *oem_table_id); |
13 | extern int mps_oem_check(struct mpc_table *mpc, char *oem, char *productid); | 13 | extern int mps_oem_check(struct mpc_table *mpc, char *oem, char *productid); |
14 | #endif | 14 | #endif |
15 | 15 | ||
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h index 26c5e824a717..108abdf6953b 100644 --- a/arch/x86/include/asm/genapic.h +++ b/arch/x86/include/asm/genapic.h | |||
@@ -103,7 +103,7 @@ extern struct genapic apic_flat; | |||
103 | extern struct genapic apic_physflat; | 103 | extern struct genapic apic_physflat; |
104 | extern struct genapic apic_x2apic_cluster; | 104 | extern struct genapic apic_x2apic_cluster; |
105 | extern struct genapic apic_x2apic_phys; | 105 | extern struct genapic apic_x2apic_phys; |
106 | extern int acpi_madt_oem_check(char *, char *); | 106 | extern int default_acpi_madt_oem_check(char *, char *); |
107 | 107 | ||
108 | extern void apic_send_IPI_self(int vector); | 108 | extern void apic_send_IPI_self(int vector); |
109 | 109 | ||
diff --git a/arch/x86/include/asm/mach-default/mach_mpparse.h b/arch/x86/include/asm/mach-default/mach_mpparse.h index c70a263d68cd..8fa01770ba62 100644 --- a/arch/x86/include/asm/mach-default/mach_mpparse.h +++ b/arch/x86/include/asm/mach-default/mach_mpparse.h | |||
@@ -8,7 +8,7 @@ mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) | |||
8 | } | 8 | } |
9 | 9 | ||
10 | /* Hook from generic ACPI tables.c */ | 10 | /* Hook from generic ACPI tables.c */ |
11 | static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id) | 11 | static inline int default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) |
12 | { | 12 | { |
13 | return 0; | 13 | return 0; |
14 | } | 14 | } |
diff --git a/arch/x86/include/asm/mach-generic/mach_mpparse.h b/arch/x86/include/asm/mach-generic/mach_mpparse.h index 9444ab8dca94..f497d96c76bb 100644 --- a/arch/x86/include/asm/mach-generic/mach_mpparse.h +++ b/arch/x86/include/asm/mach-generic/mach_mpparse.h | |||
@@ -4,6 +4,6 @@ | |||
4 | 4 | ||
5 | extern int mps_oem_check(struct mpc_table *, char *, char *); | 5 | extern int mps_oem_check(struct mpc_table *, char *, char *); |
6 | 6 | ||
7 | extern int acpi_madt_oem_check(char *, char *); | 7 | extern int default_acpi_madt_oem_check(char *, char *); |
8 | 8 | ||
9 | #endif /* _ASM_X86_MACH_GENERIC_MACH_MPPARSE_H */ | 9 | #endif /* _ASM_X86_MACH_GENERIC_MACH_MPPARSE_H */ |
diff --git a/arch/x86/include/asm/summit/mpparse.h b/arch/x86/include/asm/summit/mpparse.h index 380e86c02363..555ed8238e94 100644 --- a/arch/x86/include/asm/summit/mpparse.h +++ b/arch/x86/include/asm/summit/mpparse.h | |||
@@ -27,7 +27,7 @@ static inline int mps_oem_check(struct mpc_table *mpc, char *oem, | |||
27 | } | 27 | } |
28 | 28 | ||
29 | /* Hook from generic ACPI tables.c */ | 29 | /* Hook from generic ACPI tables.c */ |
30 | static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id) | 30 | static inline int summit_acpi_madt_oem_check(char *oem_id, char *oem_table_id) |
31 | { | 31 | { |
32 | if (!strncmp(oem_id, "IBM", 3) && | 32 | if (!strncmp(oem_id, "IBM", 3) && |
33 | (!strncmp(oem_table_id, "SERVIGIL", 8) | 33 | (!strncmp(oem_table_id, "SERVIGIL", 8) |