aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 07:44:32 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:28 -0500
commit9c7642470ecf03d8b4946a2addc8fe631b8426dd (patch)
treeca3231588aeb790d52d9808d053f9c54f6bbc7c1 /arch/x86/mach-generic
parent1322a2e2db87c938d8381f8501af9a4d0eab8bc7 (diff)
x86: consolidate the ->mps_oem_check() code
- spread out the mps_oem_check() namespace on a per APIC driver basis Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-generic')
-rw-r--r--arch/x86/mach-generic/bigsmp.c2
-rw-r--r--arch/x86/mach-generic/default.c2
-rw-r--r--arch/x86/mach-generic/es7000.c5
-rw-r--r--arch/x86/mach-generic/numaq.c4
-rw-r--r--arch/x86/mach-generic/probe.c3
-rw-r--r--arch/x86/mach-generic/summit.c2
6 files changed, 10 insertions, 8 deletions
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c
index d04b38954df3..6bf6aafeb2c6 100644
--- a/arch/x86/mach-generic/bigsmp.c
+++ b/arch/x86/mach-generic/bigsmp.c
@@ -88,7 +88,7 @@ struct genapic apic_bigsmp = {
88 .check_phys_apicid_present = bigsmp_check_phys_apicid_present, 88 .check_phys_apicid_present = bigsmp_check_phys_apicid_present,
89 .enable_apic_mode = NULL, 89 .enable_apic_mode = NULL,
90 .phys_pkg_id = bigsmp_phys_pkg_id, 90 .phys_pkg_id = bigsmp_phys_pkg_id,
91 .mps_oem_check = mps_oem_check, 91 .mps_oem_check = NULL,
92 92
93 .get_apic_id = get_apic_id, 93 .get_apic_id = get_apic_id,
94 .set_apic_id = NULL, 94 .set_apic_id = NULL,
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c
index 5c9266f756e0..e5f85cd75b43 100644
--- a/arch/x86/mach-generic/default.c
+++ b/arch/x86/mach-generic/default.c
@@ -69,7 +69,7 @@ struct genapic apic_default = {
69 .check_phys_apicid_present = default_check_phys_apicid_present, 69 .check_phys_apicid_present = default_check_phys_apicid_present,
70 .enable_apic_mode = NULL, 70 .enable_apic_mode = NULL,
71 .phys_pkg_id = default_phys_pkg_id, 71 .phys_pkg_id = default_phys_pkg_id,
72 .mps_oem_check = mps_oem_check, 72 .mps_oem_check = NULL,
73 73
74 .get_apic_id = get_apic_id, 74 .get_apic_id = get_apic_id,
75 .set_apic_id = NULL, 75 .set_apic_id = NULL,
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c
index 52787e34c9cc..f861163cd396 100644
--- a/arch/x86/mach-generic/es7000.c
+++ b/arch/x86/mach-generic/es7000.c
@@ -36,11 +36,12 @@ static int probe_es7000(void)
36} 36}
37 37
38static __init int 38static __init int
39mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) 39es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
40{ 40{
41 if (mpc->oemptr) { 41 if (mpc->oemptr) {
42 struct mpc_oemtable *oem_table = 42 struct mpc_oemtable *oem_table =
43 (struct mpc_oemtable *)mpc->oemptr; 43 (struct mpc_oemtable *)mpc->oemptr;
44
44 if (!strncmp(oem, "UNISYS", 6)) 45 if (!strncmp(oem, "UNISYS", 6))
45 return parse_unisys_oem((char *)oem_table); 46 return parse_unisys_oem((char *)oem_table);
46 } 47 }
@@ -123,7 +124,7 @@ struct genapic apic_es7000 = {
123 .check_phys_apicid_present = es7000_check_phys_apicid_present, 124 .check_phys_apicid_present = es7000_check_phys_apicid_present,
124 .enable_apic_mode = es7000_enable_apic_mode, 125 .enable_apic_mode = es7000_enable_apic_mode,
125 .phys_pkg_id = es7000_phys_pkg_id, 126 .phys_pkg_id = es7000_phys_pkg_id,
126 .mps_oem_check = mps_oem_check, 127 .mps_oem_check = es7000_mps_oem_check,
127 128
128 .get_apic_id = get_apic_id, 129 .get_apic_id = get_apic_id,
129 .set_apic_id = NULL, 130 .set_apic_id = NULL,
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c
index 6a1134e6d72d..517882c9c15a 100644
--- a/arch/x86/mach-generic/numaq.c
+++ b/arch/x86/mach-generic/numaq.c
@@ -19,7 +19,7 @@
19#include <asm/numaq/wakecpu.h> 19#include <asm/numaq/wakecpu.h>
20#include <asm/numaq.h> 20#include <asm/numaq.h>
21 21
22static int mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) 22static int __numaq_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
23{ 23{
24 numaq_mps_oem_check(mpc, oem, productid); 24 numaq_mps_oem_check(mpc, oem, productid);
25 return found_numaq; 25 return found_numaq;
@@ -88,7 +88,7 @@ struct genapic apic_numaq = {
88 .check_phys_apicid_present = numaq_check_phys_apicid_present, 88 .check_phys_apicid_present = numaq_check_phys_apicid_present,
89 .enable_apic_mode = NULL, 89 .enable_apic_mode = NULL,
90 .phys_pkg_id = numaq_phys_pkg_id, 90 .phys_pkg_id = numaq_phys_pkg_id,
91 .mps_oem_check = mps_oem_check, 91 .mps_oem_check = __numaq_mps_oem_check,
92 92
93 .get_apic_id = get_apic_id, 93 .get_apic_id = get_apic_id,
94 .set_apic_id = NULL, 94 .set_apic_id = NULL,
diff --git a/arch/x86/mach-generic/probe.c b/arch/x86/mach-generic/probe.c
index 799a70f4d90e..ab68c6e5c48a 100644
--- a/arch/x86/mach-generic/probe.c
+++ b/arch/x86/mach-generic/probe.c
@@ -110,7 +110,8 @@ void __init generic_apic_probe(void)
110 110
111/* These functions can switch the APIC even after the initial ->probe() */ 111/* These functions can switch the APIC even after the initial ->probe() */
112 112
113int __init mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) 113int __init
114generic_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
114{ 115{
115 int i; 116 int i;
116 117
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c
index 2d6843a61d97..719e944ff308 100644
--- a/arch/x86/mach-generic/summit.c
+++ b/arch/x86/mach-generic/summit.c
@@ -68,7 +68,7 @@ struct genapic apic_summit = {
68 .check_phys_apicid_present = summit_check_phys_apicid_present, 68 .check_phys_apicid_present = summit_check_phys_apicid_present,
69 .enable_apic_mode = NULL, 69 .enable_apic_mode = NULL,
70 .phys_pkg_id = summit_phys_pkg_id, 70 .phys_pkg_id = summit_phys_pkg_id,
71 .mps_oem_check = mps_oem_check, 71 .mps_oem_check = summit_mps_oem_check,
72 72
73 .get_apic_id = get_apic_id, 73 .get_apic_id = get_apic_id,
74 .set_apic_id = NULL, 74 .set_apic_id = NULL,