aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2014-07-31 02:53:34 -0400
committerH. Peter Anvin <hpa@zytor.com>2014-07-31 11:05:42 -0400
commitc460b5d34018d71fdeb8540620690883db3f959b (patch)
treea031ba2c05593c6faf3869407fc6eb86f461d9f9 /arch/x86
parent300eddf967920d35affa75db77c50c0fa493446a (diff)
x86, apic: Remove mps_oem_check callback
Since commit b5660ba76b41 ("x86, platforms: Remove NUMAQ") removed NUMAQ, the mps_oem_check() apic callback has been obsolete. Remove it. This allows generic_mps_oem_check() to be removed as well. Signed-off-by: David Rientjes <rientjes@google.com> Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1407302349390.17503@chino.kir.corp.google.com Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/apic.h7
-rw-r--r--arch/x86/include/asm/mpspec.h2
-rw-r--r--arch/x86/kernel/apic/apic_flat_64.c2
-rw-r--r--arch/x86/kernel/apic/apic_noop.c2
-rw-r--r--arch/x86/kernel/apic/apic_numachip.c1
-rw-r--r--arch/x86/kernel/apic/bigsmp_32.c1
-rw-r--r--arch/x86/kernel/apic/probe_32.c25
-rw-r--r--arch/x86/kernel/apic/x2apic_cluster.c1
-rw-r--r--arch/x86/kernel/apic/x2apic_phys.c1
-rw-r--r--arch/x86/kernel/apic/x2apic_uv_x.c1
-rw-r--r--arch/x86/kernel/mpparse.c3
11 files changed, 1 insertions, 45 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index b8c1380690e7..86d155026c3e 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -309,13 +309,6 @@ struct apic {
309 void (*enable_apic_mode)(void); 309 void (*enable_apic_mode)(void);
310 int (*phys_pkg_id)(int cpuid_apic, int index_msb); 310 int (*phys_pkg_id)(int cpuid_apic, int index_msb);
311 311
312 /*
313 * When one of the next two hooks returns 1 the apic
314 * is switched to this. Essentially they are additional
315 * probe functions:
316 */
317 int (*mps_oem_check)(struct mpc_table *mpc, char *oem, char *productid);
318
319 unsigned int (*get_apic_id)(unsigned long x); 312 unsigned int (*get_apic_id)(unsigned long x);
320 unsigned long (*set_apic_id)(unsigned int id); 313 unsigned long (*set_apic_id)(unsigned int id);
321 unsigned long apic_id_mask; 314 unsigned long apic_id_mask;
diff --git a/arch/x86/include/asm/mpspec.h b/arch/x86/include/asm/mpspec.h
index 7bef40a01a1d..b07233b64578 100644
--- a/arch/x86/include/asm/mpspec.h
+++ b/arch/x86/include/asm/mpspec.h
@@ -150,6 +150,4 @@ static inline void physid_set_mask_of_physid(int physid, physid_mask_t *map)
150 150
151extern physid_mask_t phys_cpu_present_map; 151extern physid_mask_t phys_cpu_present_map;
152 152
153extern int generic_mps_oem_check(struct mpc_table *, char *, char *);
154
155#endif /* _ASM_X86_MPSPEC_H */ 153#endif /* _ASM_X86_MPSPEC_H */
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c
index a790497902e4..86c4203af12e 100644
--- a/arch/x86/kernel/apic/apic_flat_64.c
+++ b/arch/x86/kernel/apic/apic_flat_64.c
@@ -182,7 +182,6 @@ static struct apic apic_flat = {
182 .check_phys_apicid_present = default_check_phys_apicid_present, 182 .check_phys_apicid_present = default_check_phys_apicid_present,
183 .enable_apic_mode = NULL, 183 .enable_apic_mode = NULL,
184 .phys_pkg_id = flat_phys_pkg_id, 184 .phys_pkg_id = flat_phys_pkg_id,
185 .mps_oem_check = NULL,
186 185
187 .get_apic_id = flat_get_apic_id, 186 .get_apic_id = flat_get_apic_id,
188 .set_apic_id = set_apic_id, 187 .set_apic_id = set_apic_id,
@@ -295,7 +294,6 @@ static struct apic apic_physflat = {
295 .check_phys_apicid_present = default_check_phys_apicid_present, 294 .check_phys_apicid_present = default_check_phys_apicid_present,
296 .enable_apic_mode = NULL, 295 .enable_apic_mode = NULL,
297 .phys_pkg_id = flat_phys_pkg_id, 296 .phys_pkg_id = flat_phys_pkg_id,
298 .mps_oem_check = NULL,
299 297
300 .get_apic_id = flat_get_apic_id, 298 .get_apic_id = flat_get_apic_id,
301 .set_apic_id = set_apic_id, 299 .set_apic_id = set_apic_id,
diff --git a/arch/x86/kernel/apic/apic_noop.c b/arch/x86/kernel/apic/apic_noop.c
index f05b4f090214..6b25735cc1cd 100644
--- a/arch/x86/kernel/apic/apic_noop.c
+++ b/arch/x86/kernel/apic/apic_noop.c
@@ -152,8 +152,6 @@ struct apic apic_noop = {
152 152
153 .phys_pkg_id = noop_phys_pkg_id, 153 .phys_pkg_id = noop_phys_pkg_id,
154 154
155 .mps_oem_check = NULL,
156
157 .get_apic_id = noop_get_apic_id, 155 .get_apic_id = noop_get_apic_id,
158 .set_apic_id = NULL, 156 .set_apic_id = NULL,
159 .apic_id_mask = 0x0F << 24, 157 .apic_id_mask = 0x0F << 24,
diff --git a/arch/x86/kernel/apic/apic_numachip.c b/arch/x86/kernel/apic/apic_numachip.c
index c0d9165be0d7..5f835003634a 100644
--- a/arch/x86/kernel/apic/apic_numachip.c
+++ b/arch/x86/kernel/apic/apic_numachip.c
@@ -231,7 +231,6 @@ static const struct apic apic_numachip __refconst = {
231 .check_phys_apicid_present = default_check_phys_apicid_present, 231 .check_phys_apicid_present = default_check_phys_apicid_present,
232 .enable_apic_mode = NULL, 232 .enable_apic_mode = NULL,
233 .phys_pkg_id = numachip_phys_pkg_id, 233 .phys_pkg_id = numachip_phys_pkg_id,
234 .mps_oem_check = NULL,
235 234
236 .get_apic_id = get_apic_id, 235 .get_apic_id = get_apic_id,
237 .set_apic_id = set_apic_id, 236 .set_apic_id = set_apic_id,
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c
index eb159163064c..90f6427687ea 100644
--- a/arch/x86/kernel/apic/bigsmp_32.c
+++ b/arch/x86/kernel/apic/bigsmp_32.c
@@ -182,7 +182,6 @@ static struct apic apic_bigsmp = {
182 .check_phys_apicid_present = bigsmp_check_phys_apicid_present, 182 .check_phys_apicid_present = bigsmp_check_phys_apicid_present,
183 .enable_apic_mode = NULL, 183 .enable_apic_mode = NULL,
184 .phys_pkg_id = bigsmp_phys_pkg_id, 184 .phys_pkg_id = bigsmp_phys_pkg_id,
185 .mps_oem_check = NULL,
186 185
187 .get_apic_id = bigsmp_get_apic_id, 186 .get_apic_id = bigsmp_get_apic_id,
188 .set_apic_id = NULL, 187 .set_apic_id = NULL,
diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c
index 5b617a92af0e..b4211f69e6a2 100644
--- a/arch/x86/kernel/apic/probe_32.c
+++ b/arch/x86/kernel/apic/probe_32.c
@@ -102,7 +102,6 @@ static struct apic apic_default = {
102 .check_phys_apicid_present = default_check_phys_apicid_present, 102 .check_phys_apicid_present = default_check_phys_apicid_present,
103 .enable_apic_mode = NULL, 103 .enable_apic_mode = NULL,
104 .phys_pkg_id = default_phys_pkg_id, 104 .phys_pkg_id = default_phys_pkg_id,
105 .mps_oem_check = NULL,
106 105
107 .get_apic_id = default_get_apic_id, 106 .get_apic_id = default_get_apic_id,
108 .set_apic_id = NULL, 107 .set_apic_id = NULL,
@@ -210,29 +209,7 @@ void __init generic_apic_probe(void)
210 printk(KERN_INFO "Using APIC driver %s\n", apic->name); 209 printk(KERN_INFO "Using APIC driver %s\n", apic->name);
211} 210}
212 211
213/* These functions can switch the APIC even after the initial ->probe() */ 212/* This function can switch the APIC even after the initial ->probe() */
214
215int __init
216generic_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
217{
218 struct apic **drv;
219
220 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) {
221 if (!((*drv)->mps_oem_check))
222 continue;
223 if (!(*drv)->mps_oem_check(mpc, oem, productid))
224 continue;
225
226 if (!cmdline_apic) {
227 apic = *drv;
228 printk(KERN_INFO "Switched to APIC driver `%s'.\n",
229 apic->name);
230 }
231 return 1;
232 }
233 return 0;
234}
235
236int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) 213int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
237{ 214{
238 struct apic **drv; 215 struct apic **drv;
diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c
index d96cab15f6f4..7e4ac5587af0 100644
--- a/arch/x86/kernel/apic/x2apic_cluster.c
+++ b/arch/x86/kernel/apic/x2apic_cluster.c
@@ -263,7 +263,6 @@ static struct apic apic_x2apic_cluster = {
263 .check_phys_apicid_present = default_check_phys_apicid_present, 263 .check_phys_apicid_present = default_check_phys_apicid_present,
264 .enable_apic_mode = NULL, 264 .enable_apic_mode = NULL,
265 .phys_pkg_id = x2apic_phys_pkg_id, 265 .phys_pkg_id = x2apic_phys_pkg_id,
266 .mps_oem_check = NULL,
267 266
268 .get_apic_id = x2apic_get_apic_id, 267 .get_apic_id = x2apic_get_apic_id,
269 .set_apic_id = x2apic_set_apic_id, 268 .set_apic_id = x2apic_set_apic_id,
diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c
index 73d0fee6d0cd..01136e64c380 100644
--- a/arch/x86/kernel/apic/x2apic_phys.c
+++ b/arch/x86/kernel/apic/x2apic_phys.c
@@ -117,7 +117,6 @@ static struct apic apic_x2apic_phys = {
117 .check_phys_apicid_present = default_check_phys_apicid_present, 117 .check_phys_apicid_present = default_check_phys_apicid_present,
118 .enable_apic_mode = NULL, 118 .enable_apic_mode = NULL,
119 .phys_pkg_id = x2apic_phys_pkg_id, 119 .phys_pkg_id = x2apic_phys_pkg_id,
120 .mps_oem_check = NULL,
121 120
122 .get_apic_id = x2apic_get_apic_id, 121 .get_apic_id = x2apic_get_apic_id,
123 .set_apic_id = x2apic_set_apic_id, 122 .set_apic_id = x2apic_set_apic_id,
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index cc5d40e6c85d..119c55377640 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -379,7 +379,6 @@ static struct apic __refdata apic_x2apic_uv_x = {
379 .check_phys_apicid_present = default_check_phys_apicid_present, 379 .check_phys_apicid_present = default_check_phys_apicid_present,
380 .enable_apic_mode = NULL, 380 .enable_apic_mode = NULL,
381 .phys_pkg_id = uv_phys_pkg_id, 381 .phys_pkg_id = uv_phys_pkg_id,
382 .mps_oem_check = NULL,
383 382
384 .get_apic_id = x2apic_get_apic_id, 383 .get_apic_id = x2apic_get_apic_id,
385 .set_apic_id = set_apic_id, 384 .set_apic_id = set_apic_id,
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index fde86d2b79f8..2d2a237f2c73 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -216,9 +216,6 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
216 if (!smp_check_mpc(mpc, oem, str)) 216 if (!smp_check_mpc(mpc, oem, str))
217 return 0; 217 return 0;
218 218
219#ifdef CONFIG_X86_32
220 generic_mps_oem_check(mpc, oem, str);
221#endif
222 /* Initialize the lapic mapping */ 219 /* Initialize the lapic mapping */
223 if (!acpi_lapic) 220 if (!acpi_lapic)
224 register_lapic_address(mpc->lapic); 221 register_lapic_address(mpc->lapic);