]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86/apic: Remove the unused struct apic::apic_id_mask field
authorWei Jiangang <weijg.fnst@cn.fujitsu.com>
Thu, 14 Jul 2016 02:24:06 +0000 (10:24 +0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 15 Jul 2016 08:39:05 +0000 (10:39 +0200)
The only user verify_local_APIC() had been removed by commit:

  4399c03c6780 ("x86/apic: Remove verify_local_APIC()")

... so there is no need to keep it.

Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: boris.ostrovsky@oracle.com
Cc: bsd@redhat.com
Cc: david.vrabel@citrix.com
Cc: jgross@suse.com
Cc: konrad.wilk@oracle.com
Cc: xen-devel@lists.xenproject.org
Link: http://lkml.kernel.org/r/1468463046-20849-1-git-send-email-weijg.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/apic.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/xen/apic.c

index bc27611fa58f1b0b522beefb3117afb1f5c250e6..f5befd4945f2a84d4123ce47d2c68d5bab1a0a88 100644 (file)
@@ -300,7 +300,6 @@ struct apic {
 
        unsigned int (*get_apic_id)(unsigned long x);
        unsigned long (*set_apic_id)(unsigned int id);
-       unsigned long apic_id_mask;
 
        int (*cpu_mask_to_apicid_and)(const struct cpumask *cpumask,
                                      const struct cpumask *andmask,
index 76f89e2b245afbb1a22550301e39479a8959b04d..048747778d37515651ce7d578759f582de447961 100644 (file)
@@ -181,7 +181,6 @@ static struct apic apic_flat =  {
 
        .get_apic_id                    = flat_get_apic_id,
        .set_apic_id                    = set_apic_id,
-       .apic_id_mask                   = 0xFFu << 24,
 
        .cpu_mask_to_apicid_and         = flat_cpu_mask_to_apicid_and,
 
@@ -278,7 +277,6 @@ static struct apic apic_physflat =  {
 
        .get_apic_id                    = flat_get_apic_id,
        .set_apic_id                    = set_apic_id,
-       .apic_id_mask                   = 0xFFu << 24,
 
        .cpu_mask_to_apicid_and         = default_cpu_mask_to_apicid_and,
 
index 13d19ed585142eae225625bd808c1c1acba0b790..2cebf59092d873b59081a381c80d6a3e0a0f1abd 100644 (file)
@@ -141,7 +141,6 @@ struct apic apic_noop = {
 
        .get_apic_id                    = noop_get_apic_id,
        .set_apic_id                    = NULL,
-       .apic_id_mask                   = 0x0F << 24,
 
        .cpu_mask_to_apicid_and         = flat_cpu_mask_to_apicid_and,
 
index ab5c2c685a3ce908c3677262a35fd402ba77a445..714d4fda0d5205a687c077f96e8519ab4d81db2e 100644 (file)
@@ -269,7 +269,6 @@ static const struct apic apic_numachip1 __refconst = {
 
        .get_apic_id                    = numachip1_get_apic_id,
        .set_apic_id                    = numachip1_set_apic_id,
-       .apic_id_mask                   = 0xffU << 24,
 
        .cpu_mask_to_apicid_and         = default_cpu_mask_to_apicid_and,
 
@@ -321,7 +320,6 @@ static const struct apic apic_numachip2 __refconst = {
 
        .get_apic_id                    = numachip2_get_apic_id,
        .set_apic_id                    = numachip2_set_apic_id,
-       .apic_id_mask                   = 0xffU << 24,
 
        .cpu_mask_to_apicid_and         = default_cpu_mask_to_apicid_and,
 
index cf9bd896c12d38f8ac5772a2d578fae1b68da3df..06dbaa458bfef4bfd052c5b4e7d72b59ce0410d8 100644 (file)
@@ -171,7 +171,6 @@ static struct apic apic_bigsmp = {
 
        .get_apic_id                    = bigsmp_get_apic_id,
        .set_apic_id                    = NULL,
-       .apic_id_mask                   = 0xFF << 24,
 
        .cpu_mask_to_apicid_and         = default_cpu_mask_to_apicid_and,
 
index f316e34abb42bef31fbf8948bb1cdd8c4491fcbe..93edfa01b408710a6d3d10b3f4a9c0dc111c8280 100644 (file)
@@ -101,7 +101,6 @@ static struct apic apic_default = {
 
        .get_apic_id                    = default_get_apic_id,
        .set_apic_id                    = NULL,
-       .apic_id_mask                   = 0x0F << 24,
 
        .cpu_mask_to_apicid_and         = flat_cpu_mask_to_apicid_and,
 
index aca8b75c15527fcb0aa78bcabbcbb9fe6b14fdc0..24170d0809ba9e45eb88fce04c0a7be4fe708b8b 100644 (file)
@@ -270,7 +270,6 @@ static struct apic apic_x2apic_cluster = {
 
        .get_apic_id                    = x2apic_get_apic_id,
        .set_apic_id                    = x2apic_set_apic_id,
-       .apic_id_mask                   = 0xFFFFFFFFu,
 
        .cpu_mask_to_apicid_and         = x2apic_cpu_mask_to_apicid_and,
 
index a1242e2c12e646d4eb2b805e4359ce9068e4db56..4f13f54f1b1f47ba75fb95cae226e1fe4978f241 100644 (file)
@@ -126,7 +126,6 @@ static struct apic apic_x2apic_phys = {
 
        .get_apic_id                    = x2apic_get_apic_id,
        .set_apic_id                    = x2apic_set_apic_id,
-       .apic_id_mask                   = 0xFFFFFFFFu,
 
        .cpu_mask_to_apicid_and         = default_cpu_mask_to_apicid_and,
 
index 29003154fafd2277e4e014f5c1ac019f1a446c32..5a58c917179ca91a1577f1675f415600db4ef40c 100644 (file)
@@ -582,7 +582,6 @@ static struct apic __refdata apic_x2apic_uv_x = {
 
        .get_apic_id                    = x2apic_get_apic_id,
        .set_apic_id                    = set_apic_id,
-       .apic_id_mask                   = 0xFFFFFFFFu,
 
        .cpu_mask_to_apicid_and         = uv_cpu_mask_to_apicid_and,
 
index db52a7fafcc2ce7dc9b4294065ef9807f9a311a1..44c88ad1841a3696a7225965f16760820bea938a 100644 (file)
@@ -177,7 +177,6 @@ static struct apic xen_pv_apic = {
 
        .get_apic_id                    = xen_get_apic_id,
        .set_apic_id                    = xen_set_apic_id, /* Can be NULL on 32-bit. */
-       .apic_id_mask                   = 0xFF << 24, /* Used by verify_local_APIC. Match with what xen_get_apic_id does. */
 
        .cpu_mask_to_apicid_and         = flat_cpu_mask_to_apicid_and,