x86, apic: Remove mps_oem_check callback
authorDavid Rientjes <rientjes@google.com>
Thu, 31 Jul 2014 06:53:34 +0000 (23:53 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 31 Jul 2014 15:05:42 +0000 (08:05 -0700)
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>
arch/x86/include/asm/apic.h
arch/x86/include/asm/mpspec.h
arch/x86/kernel/apic/apic_flat_64.c
arch/x86/kernel/apic/apic_noop.c
arch/x86/kernel/apic/apic_numachip.c
arch/x86/kernel/apic/bigsmp_32.c
arch/x86/kernel/apic/probe_32.c
arch/x86/kernel/apic/x2apic_cluster.c
arch/x86/kernel/apic/x2apic_phys.c
arch/x86/kernel/apic/x2apic_uv_x.c
arch/x86/kernel/mpparse.c

index b8c1380690e7a58e43c4866d318e6d04936c4448..86d155026c3e8f3238200a759afaf5965f84afe3 100644 (file)
@@ -309,13 +309,6 @@ struct apic {
        void (*enable_apic_mode)(void);
        int (*phys_pkg_id)(int cpuid_apic, int index_msb);
 
-       /*
-        * When one of the next two hooks returns 1 the apic
-        * is switched to this. Essentially they are additional
-        * probe functions:
-        */
-       int (*mps_oem_check)(struct mpc_table *mpc, char *oem, char *productid);
-
        unsigned int (*get_apic_id)(unsigned long x);
        unsigned long (*set_apic_id)(unsigned int id);
        unsigned long apic_id_mask;
index 7bef40a01a1d73fe756d5238eaeac491925e7ea4..b07233b64578721668b6d5d06903c5b148bd169d 100644 (file)
@@ -150,6 +150,4 @@ static inline void physid_set_mask_of_physid(int physid, physid_mask_t *map)
 
 extern physid_mask_t phys_cpu_present_map;
 
-extern int generic_mps_oem_check(struct mpc_table *, char *, char *);
-
 #endif /* _ASM_X86_MPSPEC_H */
index a790497902e4d334b1e9deded9bb2c4c477fadb0..86c4203af12ecea82fa43e0730eed308ad5762f3 100644 (file)
@@ -182,7 +182,6 @@ static struct apic apic_flat =  {
        .check_phys_apicid_present      = default_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = flat_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = flat_get_apic_id,
        .set_apic_id                    = set_apic_id,
@@ -295,7 +294,6 @@ static struct apic apic_physflat =  {
        .check_phys_apicid_present      = default_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = flat_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = flat_get_apic_id,
        .set_apic_id                    = set_apic_id,
index f05b4f0902146c06f531933ec364d4fc86a7d87e..6b25735cc1cd46a31a48c8aa40208e9e6fd244bb 100644 (file)
@@ -152,8 +152,6 @@ struct apic apic_noop = {
 
        .phys_pkg_id                    = noop_phys_pkg_id,
 
-       .mps_oem_check                  = NULL,
-
        .get_apic_id                    = noop_get_apic_id,
        .set_apic_id                    = NULL,
        .apic_id_mask                   = 0x0F << 24,
index c0d9165be0d71c6bc34fca213d9f576273bee961..5f835003634a7a233e3dc0a8411467c1fc57d0db 100644 (file)
@@ -231,7 +231,6 @@ static const struct apic apic_numachip __refconst = {
        .check_phys_apicid_present      = default_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = numachip_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = get_apic_id,
        .set_apic_id                    = set_apic_id,
index eb159163064c7ebd3b23983444faebe6da9c2212..90f6427687ea94be6be18a8d8501f7bc9c48f990 100644 (file)
@@ -182,7 +182,6 @@ static struct apic apic_bigsmp = {
        .check_phys_apicid_present      = bigsmp_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = bigsmp_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = bigsmp_get_apic_id,
        .set_apic_id                    = NULL,
index 5b617a92af0e5b429b47cb5d98e912bbe3911113..b4211f69e6a25a05bf846bfca582f1ecbbcd8053 100644 (file)
@@ -102,7 +102,6 @@ static struct apic apic_default = {
        .check_phys_apicid_present      = default_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = default_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = default_get_apic_id,
        .set_apic_id                    = NULL,
@@ -210,29 +209,7 @@ void __init generic_apic_probe(void)
        printk(KERN_INFO "Using APIC driver %s\n", apic->name);
 }
 
-/* These functions can switch the APIC even after the initial ->probe() */
-
-int __init
-generic_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
-{
-       struct apic **drv;
-
-       for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) {
-               if (!((*drv)->mps_oem_check))
-                       continue;
-               if (!(*drv)->mps_oem_check(mpc, oem, productid))
-                       continue;
-
-               if (!cmdline_apic) {
-                       apic = *drv;
-                       printk(KERN_INFO "Switched to APIC driver `%s'.\n",
-                              apic->name);
-               }
-               return 1;
-       }
-       return 0;
-}
-
+/* This function can switch the APIC even after the initial ->probe() */
 int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
 {
        struct apic **drv;
index d96cab15f6f489a26d0f5c4afcf59a9300d5f4ff..7e4ac5587af051d817abd3643f26cce9c1e26bf7 100644 (file)
@@ -263,7 +263,6 @@ static struct apic apic_x2apic_cluster = {
        .check_phys_apicid_present      = default_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = x2apic_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = x2apic_get_apic_id,
        .set_apic_id                    = x2apic_set_apic_id,
index 73d0fee6d0cd6e9f1eb90fae5a5c73e99bdb69d2..01136e64c3800fc57a6aba2dd4626c61ac83117f 100644 (file)
@@ -117,7 +117,6 @@ static struct apic apic_x2apic_phys = {
        .check_phys_apicid_present      = default_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = x2apic_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = x2apic_get_apic_id,
        .set_apic_id                    = x2apic_set_apic_id,
index cc5d40e6c85d4d8c23b80ec6b27e5da40ddf53bd..119c553776405f6269f84a1d7095a2bf8b50ad46 100644 (file)
@@ -379,7 +379,6 @@ static struct apic __refdata apic_x2apic_uv_x = {
        .check_phys_apicid_present      = default_check_phys_apicid_present,
        .enable_apic_mode               = NULL,
        .phys_pkg_id                    = uv_phys_pkg_id,
-       .mps_oem_check                  = NULL,
 
        .get_apic_id                    = x2apic_get_apic_id,
        .set_apic_id                    = set_apic_id,
index fde86d2b79f805b7f26b0c7e69fc34cce2cf9799..2d2a237f2c73698a4dd2819800edd6179239904b 100644 (file)
@@ -216,9 +216,6 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
        if (!smp_check_mpc(mpc, oem, str))
                return 0;
 
-#ifdef CONFIG_X86_32
-       generic_mps_oem_check(mpc, oem, str);
-#endif
        /* Initialize the lapic mapping */
        if (!acpi_lapic)
                register_lapic_address(mpc->lapic);