diff options
author | David Rientjes <rientjes@google.com> | 2014-07-31 02:53:47 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-07-31 11:05:44 -0400 |
commit | 11a8318ef5a69cdb9be61f726d6e078d70af6129 (patch) | |
tree | 4043e716cbcdb8137c75565a6e8d8ac381fe8896 | |
parent | e76661ba09353efd04e3435ac15bb9444f5cf1fa (diff) |
x86, apic: Remove setup_portio_remap callback
Since commit b5660ba76b41 ("x86, platforms: Remove NUMAQ") removed NUMAQ,
the setup_portio_remap() apic callback has been obsolete. Remove it.
Signed-off-by: David Rientjes <rientjes@google.com>
Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1407302351480.17503@chino.kir.corp.google.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-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 | 1 | ||||
-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/kernel/smpboot.c | 4 |
10 files changed, 0 insertions, 14 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index d8da5fc6a54d..e776ed29b74c 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -302,7 +302,6 @@ struct apic { | |||
302 | void (*setup_apic_routing)(void); | 302 | void (*setup_apic_routing)(void); |
303 | int (*cpu_present_to_apicid)(int mps_cpu); | 303 | int (*cpu_present_to_apicid)(int mps_cpu); |
304 | void (*apicid_to_cpu_present)(int phys_apicid, physid_mask_t *retmap); | 304 | void (*apicid_to_cpu_present)(int phys_apicid, physid_mask_t *retmap); |
305 | void (*setup_portio_remap)(void); | ||
306 | int (*check_phys_apicid_present)(int phys_apicid); | 305 | int (*check_phys_apicid_present)(int phys_apicid); |
307 | void (*enable_apic_mode)(void); | 306 | void (*enable_apic_mode)(void); |
308 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); | 307 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); |
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c index f23b5e8d1bbb..67d7a9da342c 100644 --- a/arch/x86/kernel/apic/apic_flat_64.c +++ b/arch/x86/kernel/apic/apic_flat_64.c | |||
@@ -176,7 +176,6 @@ static struct apic apic_flat = { | |||
176 | .setup_apic_routing = NULL, | 176 | .setup_apic_routing = NULL, |
177 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 177 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
178 | .apicid_to_cpu_present = NULL, | 178 | .apicid_to_cpu_present = NULL, |
179 | .setup_portio_remap = NULL, | ||
180 | .check_phys_apicid_present = default_check_phys_apicid_present, | 179 | .check_phys_apicid_present = default_check_phys_apicid_present, |
181 | .enable_apic_mode = NULL, | 180 | .enable_apic_mode = NULL, |
182 | .phys_pkg_id = flat_phys_pkg_id, | 181 | .phys_pkg_id = flat_phys_pkg_id, |
@@ -286,7 +285,6 @@ static struct apic apic_physflat = { | |||
286 | .setup_apic_routing = NULL, | 285 | .setup_apic_routing = NULL, |
287 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 286 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
288 | .apicid_to_cpu_present = NULL, | 287 | .apicid_to_cpu_present = NULL, |
289 | .setup_portio_remap = NULL, | ||
290 | .check_phys_apicid_present = default_check_phys_apicid_present, | 288 | .check_phys_apicid_present = default_check_phys_apicid_present, |
291 | .enable_apic_mode = NULL, | 289 | .enable_apic_mode = NULL, |
292 | .phys_pkg_id = flat_phys_pkg_id, | 290 | .phys_pkg_id = flat_phys_pkg_id, |
diff --git a/arch/x86/kernel/apic/apic_noop.c b/arch/x86/kernel/apic/apic_noop.c index 66a91e5fc23d..fe5d5e6b479e 100644 --- a/arch/x86/kernel/apic/apic_noop.c +++ b/arch/x86/kernel/apic/apic_noop.c | |||
@@ -134,7 +134,6 @@ struct apic apic_noop = { | |||
134 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 134 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
135 | .apicid_to_cpu_present = physid_set_mask_of_physid, | 135 | .apicid_to_cpu_present = physid_set_mask_of_physid, |
136 | 136 | ||
137 | .setup_portio_remap = NULL, | ||
138 | .check_phys_apicid_present = default_check_phys_apicid_present, | 137 | .check_phys_apicid_present = default_check_phys_apicid_present, |
139 | .enable_apic_mode = NULL, | 138 | .enable_apic_mode = NULL, |
140 | 139 | ||
diff --git a/arch/x86/kernel/apic/apic_numachip.c b/arch/x86/kernel/apic/apic_numachip.c index 3d7f6b2e312d..6b55be3596b5 100644 --- a/arch/x86/kernel/apic/apic_numachip.c +++ b/arch/x86/kernel/apic/apic_numachip.c | |||
@@ -225,7 +225,6 @@ static const struct apic apic_numachip __refconst = { | |||
225 | .setup_apic_routing = NULL, | 225 | .setup_apic_routing = NULL, |
226 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 226 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
227 | .apicid_to_cpu_present = NULL, | 227 | .apicid_to_cpu_present = NULL, |
228 | .setup_portio_remap = NULL, | ||
229 | .check_phys_apicid_present = default_check_phys_apicid_present, | 228 | .check_phys_apicid_present = default_check_phys_apicid_present, |
230 | .enable_apic_mode = NULL, | 229 | .enable_apic_mode = NULL, |
231 | .phys_pkg_id = numachip_phys_pkg_id, | 230 | .phys_pkg_id = numachip_phys_pkg_id, |
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c index fa99280ee90e..349465aa2454 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 | .setup_apic_routing = bigsmp_setup_apic_routing, | 171 | .setup_apic_routing = bigsmp_setup_apic_routing, |
172 | .cpu_present_to_apicid = bigsmp_cpu_present_to_apicid, | 172 | .cpu_present_to_apicid = bigsmp_cpu_present_to_apicid, |
173 | .apicid_to_cpu_present = physid_set_mask_of_physid, | 173 | .apicid_to_cpu_present = physid_set_mask_of_physid, |
174 | .setup_portio_remap = NULL, | ||
175 | .check_phys_apicid_present = bigsmp_check_phys_apicid_present, | 174 | .check_phys_apicid_present = bigsmp_check_phys_apicid_present, |
176 | .enable_apic_mode = NULL, | 175 | .enable_apic_mode = NULL, |
177 | .phys_pkg_id = bigsmp_phys_pkg_id, | 176 | .phys_pkg_id = bigsmp_phys_pkg_id, |
diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c index a445842f24fe..45ad6d894bb3 100644 --- a/arch/x86/kernel/apic/probe_32.c +++ b/arch/x86/kernel/apic/probe_32.c | |||
@@ -96,7 +96,6 @@ static struct apic apic_default = { | |||
96 | .setup_apic_routing = setup_apic_flat_routing, | 96 | .setup_apic_routing = setup_apic_flat_routing, |
97 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 97 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
98 | .apicid_to_cpu_present = physid_set_mask_of_physid, | 98 | .apicid_to_cpu_present = physid_set_mask_of_physid, |
99 | .setup_portio_remap = NULL, | ||
100 | .check_phys_apicid_present = default_check_phys_apicid_present, | 99 | .check_phys_apicid_present = default_check_phys_apicid_present, |
101 | .enable_apic_mode = NULL, | 100 | .enable_apic_mode = NULL, |
102 | .phys_pkg_id = default_phys_pkg_id, | 101 | .phys_pkg_id = default_phys_pkg_id, |
diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c index 88eeaa90c91c..ac70128aa9e9 100644 --- a/arch/x86/kernel/apic/x2apic_cluster.c +++ b/arch/x86/kernel/apic/x2apic_cluster.c | |||
@@ -257,7 +257,6 @@ static struct apic apic_x2apic_cluster = { | |||
257 | .setup_apic_routing = NULL, | 257 | .setup_apic_routing = NULL, |
258 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 258 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
259 | .apicid_to_cpu_present = NULL, | 259 | .apicid_to_cpu_present = NULL, |
260 | .setup_portio_remap = NULL, | ||
261 | .check_phys_apicid_present = default_check_phys_apicid_present, | 260 | .check_phys_apicid_present = default_check_phys_apicid_present, |
262 | .enable_apic_mode = NULL, | 261 | .enable_apic_mode = NULL, |
263 | .phys_pkg_id = x2apic_phys_pkg_id, | 262 | .phys_pkg_id = x2apic_phys_pkg_id, |
diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c index 29614ae682e7..90eb77f81147 100644 --- a/arch/x86/kernel/apic/x2apic_phys.c +++ b/arch/x86/kernel/apic/x2apic_phys.c | |||
@@ -111,7 +111,6 @@ static struct apic apic_x2apic_phys = { | |||
111 | .setup_apic_routing = NULL, | 111 | .setup_apic_routing = NULL, |
112 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 112 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
113 | .apicid_to_cpu_present = NULL, | 113 | .apicid_to_cpu_present = NULL, |
114 | .setup_portio_remap = NULL, | ||
115 | .check_phys_apicid_present = default_check_phys_apicid_present, | 114 | .check_phys_apicid_present = default_check_phys_apicid_present, |
116 | .enable_apic_mode = NULL, | 115 | .enable_apic_mode = NULL, |
117 | .phys_pkg_id = x2apic_phys_pkg_id, | 116 | .phys_pkg_id = x2apic_phys_pkg_id, |
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index 53760128fd2b..480c05d8df22 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c | |||
@@ -373,7 +373,6 @@ static struct apic __refdata apic_x2apic_uv_x = { | |||
373 | .setup_apic_routing = NULL, | 373 | .setup_apic_routing = NULL, |
374 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 374 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
375 | .apicid_to_cpu_present = NULL, | 375 | .apicid_to_cpu_present = NULL, |
376 | .setup_portio_remap = NULL, | ||
377 | .check_phys_apicid_present = default_check_phys_apicid_present, | 376 | .check_phys_apicid_present = default_check_phys_apicid_present, |
378 | .enable_apic_mode = NULL, | 377 | .enable_apic_mode = NULL, |
379 | .phys_pkg_id = uv_phys_pkg_id, | 378 | .phys_pkg_id = uv_phys_pkg_id, |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index f0f3b194e9f9..2d872e08fab9 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -1139,10 +1139,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
1139 | enable_IO_APIC(); | 1139 | enable_IO_APIC(); |
1140 | 1140 | ||
1141 | bsp_end_local_APIC_setup(); | 1141 | bsp_end_local_APIC_setup(); |
1142 | |||
1143 | if (apic->setup_portio_remap) | ||
1144 | apic->setup_portio_remap(); | ||
1145 | |||
1146 | smpboot_setup_io_apic(); | 1142 | smpboot_setup_io_apic(); |
1147 | /* | 1143 | /* |
1148 | * Set up local APIC timer on boot CPU. | 1144 | * Set up local APIC timer on boot CPU. |