diff options
author | Wei Jiangang <weijg.fnst@cn.fujitsu.com> | 2016-07-13 22:24:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-07-15 04:39:05 -0400 |
commit | 102bb9fef68a21f357dc813d4792666c8295bc35 (patch) | |
tree | aed882b0d785d49dc8589a22e9135c467884fdbe | |
parent | 07ccdcd34ac39ddecb8ccd00e5f03d76e9be8881 (diff) |
x86/apic: Remove the unused struct apic::apic_id_mask field
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>
-rw-r--r-- | arch/x86/include/asm/apic.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic_flat_64.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic_noop.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic_numachip.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic/bigsmp_32.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/probe_32.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_cluster.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_phys.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_uv_x.c | 1 | ||||
-rw-r--r-- | arch/x86/xen/apic.c | 1 |
10 files changed, 0 insertions, 12 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index bc27611fa58f..f5befd4945f2 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -300,7 +300,6 @@ struct apic { | |||
300 | 300 | ||
301 | unsigned int (*get_apic_id)(unsigned long x); | 301 | unsigned int (*get_apic_id)(unsigned long x); |
302 | unsigned long (*set_apic_id)(unsigned int id); | 302 | unsigned long (*set_apic_id)(unsigned int id); |
303 | unsigned long apic_id_mask; | ||
304 | 303 | ||
305 | int (*cpu_mask_to_apicid_and)(const struct cpumask *cpumask, | 304 | int (*cpu_mask_to_apicid_and)(const struct cpumask *cpumask, |
306 | const struct cpumask *andmask, | 305 | const struct cpumask *andmask, |
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c index 76f89e2b245a..048747778d37 100644 --- a/arch/x86/kernel/apic/apic_flat_64.c +++ b/arch/x86/kernel/apic/apic_flat_64.c | |||
@@ -181,7 +181,6 @@ static struct apic apic_flat = { | |||
181 | 181 | ||
182 | .get_apic_id = flat_get_apic_id, | 182 | .get_apic_id = flat_get_apic_id, |
183 | .set_apic_id = set_apic_id, | 183 | .set_apic_id = set_apic_id, |
184 | .apic_id_mask = 0xFFu << 24, | ||
185 | 184 | ||
186 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, | 185 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, |
187 | 186 | ||
@@ -278,7 +277,6 @@ static struct apic apic_physflat = { | |||
278 | 277 | ||
279 | .get_apic_id = flat_get_apic_id, | 278 | .get_apic_id = flat_get_apic_id, |
280 | .set_apic_id = set_apic_id, | 279 | .set_apic_id = set_apic_id, |
281 | .apic_id_mask = 0xFFu << 24, | ||
282 | 280 | ||
283 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, | 281 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, |
284 | 282 | ||
diff --git a/arch/x86/kernel/apic/apic_noop.c b/arch/x86/kernel/apic/apic_noop.c index 13d19ed58514..2cebf59092d8 100644 --- a/arch/x86/kernel/apic/apic_noop.c +++ b/arch/x86/kernel/apic/apic_noop.c | |||
@@ -141,7 +141,6 @@ struct apic apic_noop = { | |||
141 | 141 | ||
142 | .get_apic_id = noop_get_apic_id, | 142 | .get_apic_id = noop_get_apic_id, |
143 | .set_apic_id = NULL, | 143 | .set_apic_id = NULL, |
144 | .apic_id_mask = 0x0F << 24, | ||
145 | 144 | ||
146 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, | 145 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, |
147 | 146 | ||
diff --git a/arch/x86/kernel/apic/apic_numachip.c b/arch/x86/kernel/apic/apic_numachip.c index ab5c2c685a3c..714d4fda0d52 100644 --- a/arch/x86/kernel/apic/apic_numachip.c +++ b/arch/x86/kernel/apic/apic_numachip.c | |||
@@ -269,7 +269,6 @@ static const struct apic apic_numachip1 __refconst = { | |||
269 | 269 | ||
270 | .get_apic_id = numachip1_get_apic_id, | 270 | .get_apic_id = numachip1_get_apic_id, |
271 | .set_apic_id = numachip1_set_apic_id, | 271 | .set_apic_id = numachip1_set_apic_id, |
272 | .apic_id_mask = 0xffU << 24, | ||
273 | 272 | ||
274 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, | 273 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, |
275 | 274 | ||
@@ -321,7 +320,6 @@ static const struct apic apic_numachip2 __refconst = { | |||
321 | 320 | ||
322 | .get_apic_id = numachip2_get_apic_id, | 321 | .get_apic_id = numachip2_get_apic_id, |
323 | .set_apic_id = numachip2_set_apic_id, | 322 | .set_apic_id = numachip2_set_apic_id, |
324 | .apic_id_mask = 0xffU << 24, | ||
325 | 323 | ||
326 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, | 324 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, |
327 | 325 | ||
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c index cf9bd896c12d..06dbaa458bfe 100644 --- a/arch/x86/kernel/apic/bigsmp_32.c +++ b/arch/x86/kernel/apic/bigsmp_32.c | |||
@@ -171,7 +171,6 @@ static struct apic apic_bigsmp = { | |||
171 | 171 | ||
172 | .get_apic_id = bigsmp_get_apic_id, | 172 | .get_apic_id = bigsmp_get_apic_id, |
173 | .set_apic_id = NULL, | 173 | .set_apic_id = NULL, |
174 | .apic_id_mask = 0xFF << 24, | ||
175 | 174 | ||
176 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, | 175 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, |
177 | 176 | ||
diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c index f316e34abb42..93edfa01b408 100644 --- a/arch/x86/kernel/apic/probe_32.c +++ b/arch/x86/kernel/apic/probe_32.c | |||
@@ -101,7 +101,6 @@ static struct apic apic_default = { | |||
101 | 101 | ||
102 | .get_apic_id = default_get_apic_id, | 102 | .get_apic_id = default_get_apic_id, |
103 | .set_apic_id = NULL, | 103 | .set_apic_id = NULL, |
104 | .apic_id_mask = 0x0F << 24, | ||
105 | 104 | ||
106 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, | 105 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, |
107 | 106 | ||
diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c index aca8b75c1552..24170d0809ba 100644 --- a/arch/x86/kernel/apic/x2apic_cluster.c +++ b/arch/x86/kernel/apic/x2apic_cluster.c | |||
@@ -270,7 +270,6 @@ static struct apic apic_x2apic_cluster = { | |||
270 | 270 | ||
271 | .get_apic_id = x2apic_get_apic_id, | 271 | .get_apic_id = x2apic_get_apic_id, |
272 | .set_apic_id = x2apic_set_apic_id, | 272 | .set_apic_id = x2apic_set_apic_id, |
273 | .apic_id_mask = 0xFFFFFFFFu, | ||
274 | 273 | ||
275 | .cpu_mask_to_apicid_and = x2apic_cpu_mask_to_apicid_and, | 274 | .cpu_mask_to_apicid_and = x2apic_cpu_mask_to_apicid_and, |
276 | 275 | ||
diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c index a1242e2c12e6..4f13f54f1b1f 100644 --- a/arch/x86/kernel/apic/x2apic_phys.c +++ b/arch/x86/kernel/apic/x2apic_phys.c | |||
@@ -126,7 +126,6 @@ static struct apic apic_x2apic_phys = { | |||
126 | 126 | ||
127 | .get_apic_id = x2apic_get_apic_id, | 127 | .get_apic_id = x2apic_get_apic_id, |
128 | .set_apic_id = x2apic_set_apic_id, | 128 | .set_apic_id = x2apic_set_apic_id, |
129 | .apic_id_mask = 0xFFFFFFFFu, | ||
130 | 129 | ||
131 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, | 130 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, |
132 | 131 | ||
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index 29003154fafd..5a58c917179c 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c | |||
@@ -582,7 +582,6 @@ static struct apic __refdata apic_x2apic_uv_x = { | |||
582 | 582 | ||
583 | .get_apic_id = x2apic_get_apic_id, | 583 | .get_apic_id = x2apic_get_apic_id, |
584 | .set_apic_id = set_apic_id, | 584 | .set_apic_id = set_apic_id, |
585 | .apic_id_mask = 0xFFFFFFFFu, | ||
586 | 585 | ||
587 | .cpu_mask_to_apicid_and = uv_cpu_mask_to_apicid_and, | 586 | .cpu_mask_to_apicid_and = uv_cpu_mask_to_apicid_and, |
588 | 587 | ||
diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c index db52a7fafcc2..44c88ad1841a 100644 --- a/arch/x86/xen/apic.c +++ b/arch/x86/xen/apic.c | |||
@@ -177,7 +177,6 @@ static struct apic xen_pv_apic = { | |||
177 | 177 | ||
178 | .get_apic_id = xen_get_apic_id, | 178 | .get_apic_id = xen_get_apic_id, |
179 | .set_apic_id = xen_set_apic_id, /* Can be NULL on 32-bit. */ | 179 | .set_apic_id = xen_set_apic_id, /* Can be NULL on 32-bit. */ |
180 | .apic_id_mask = 0xFF << 24, /* Used by verify_local_APIC. Match with what xen_get_apic_id does. */ | ||
181 | 180 | ||
182 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, | 181 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, |
183 | 182 | ||