diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 10:43:47 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:34 -0500 |
commit | 3d5f597e938c425554cb7668fd3c9d6a536a984a (patch) | |
tree | 6759f134706c4582b69cfcda1edc926b2b55705f /arch | |
parent | 7bd06ec63a1204ca44b9f1dc487b8632016162d1 (diff) |
x86, smp: remove ->restore_NMI_vector()
Nothing actually restores the NMI vector - so remove this
logic altogether.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/genapic.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/numaq/wakecpu.h | 10 | ||||
-rw-r--r-- | arch/x86/kernel/genapic_flat_64.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_cluster.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_phys.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_uv_x.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/bigsmp.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/default.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/numaq.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/summit.c | 1 |
11 files changed, 0 insertions, 21 deletions
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h index 90e83a769a1c..e5f9c5696fb6 100644 --- a/arch/x86/include/asm/genapic.h +++ b/arch/x86/include/asm/genapic.h | |||
@@ -82,7 +82,6 @@ struct genapic { | |||
82 | void (*wait_for_init_deassert)(atomic_t *deassert); | 82 | void (*wait_for_init_deassert)(atomic_t *deassert); |
83 | void (*smp_callin_clear_local_apic)(void); | 83 | void (*smp_callin_clear_local_apic)(void); |
84 | void (*store_NMI_vector)(unsigned short *high, unsigned short *low); | 84 | void (*store_NMI_vector)(unsigned short *high, unsigned short *low); |
85 | void (*restore_NMI_vector)(unsigned short *high, unsigned short *low); | ||
86 | void (*inquire_remote_apic)(int apicid); | 85 | void (*inquire_remote_apic)(int apicid); |
87 | }; | 86 | }; |
88 | 87 | ||
diff --git a/arch/x86/include/asm/numaq/wakecpu.h b/arch/x86/include/asm/numaq/wakecpu.h index 123201712a96..920dcfefa83a 100644 --- a/arch/x86/include/asm/numaq/wakecpu.h +++ b/arch/x86/include/asm/numaq/wakecpu.h | |||
@@ -25,16 +25,6 @@ numaq_store_NMI_vector(unsigned short *high, unsigned short *low) | |||
25 | *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW)); | 25 | *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW)); |
26 | } | 26 | } |
27 | 27 | ||
28 | static inline void | ||
29 | numaq_restore_NMI_vector(unsigned short *high, unsigned short *low) | ||
30 | { | ||
31 | printk("Restoring NMI vector\n"); | ||
32 | *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_HIGH)) = | ||
33 | *high; | ||
34 | *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW)) = | ||
35 | *low; | ||
36 | } | ||
37 | |||
38 | static inline void inquire_remote_apic(int apicid) | 28 | static inline void inquire_remote_apic(int apicid) |
39 | { | 29 | { |
40 | } | 30 | } |
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c index 3a28d6a8c497..e9237f599282 100644 --- a/arch/x86/kernel/genapic_flat_64.c +++ b/arch/x86/kernel/genapic_flat_64.c | |||
@@ -229,7 +229,6 @@ struct genapic apic_flat = { | |||
229 | .wait_for_init_deassert = NULL, | 229 | .wait_for_init_deassert = NULL, |
230 | .smp_callin_clear_local_apic = NULL, | 230 | .smp_callin_clear_local_apic = NULL, |
231 | .store_NMI_vector = NULL, | 231 | .store_NMI_vector = NULL, |
232 | .restore_NMI_vector = NULL, | ||
233 | .inquire_remote_apic = NULL, | 232 | .inquire_remote_apic = NULL, |
234 | }; | 233 | }; |
235 | 234 | ||
@@ -375,6 +374,5 @@ struct genapic apic_physflat = { | |||
375 | .wait_for_init_deassert = NULL, | 374 | .wait_for_init_deassert = NULL, |
376 | .smp_callin_clear_local_apic = NULL, | 375 | .smp_callin_clear_local_apic = NULL, |
377 | .store_NMI_vector = NULL, | 376 | .store_NMI_vector = NULL, |
378 | .restore_NMI_vector = NULL, | ||
379 | .inquire_remote_apic = NULL, | 377 | .inquire_remote_apic = NULL, |
380 | }; | 378 | }; |
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c index abc5ee329f21..7c87156b6411 100644 --- a/arch/x86/kernel/genx2apic_cluster.c +++ b/arch/x86/kernel/genx2apic_cluster.c | |||
@@ -233,6 +233,5 @@ struct genapic apic_x2apic_cluster = { | |||
233 | .wait_for_init_deassert = NULL, | 233 | .wait_for_init_deassert = NULL, |
234 | .smp_callin_clear_local_apic = NULL, | 234 | .smp_callin_clear_local_apic = NULL, |
235 | .store_NMI_vector = NULL, | 235 | .store_NMI_vector = NULL, |
236 | .restore_NMI_vector = NULL, | ||
237 | .inquire_remote_apic = NULL, | 236 | .inquire_remote_apic = NULL, |
238 | }; | 237 | }; |
diff --git a/arch/x86/kernel/genx2apic_phys.c b/arch/x86/kernel/genx2apic_phys.c index dc815ef22d8c..5cbae8aa0408 100644 --- a/arch/x86/kernel/genx2apic_phys.c +++ b/arch/x86/kernel/genx2apic_phys.c | |||
@@ -219,6 +219,5 @@ struct genapic apic_x2apic_phys = { | |||
219 | .wait_for_init_deassert = NULL, | 219 | .wait_for_init_deassert = NULL, |
220 | .smp_callin_clear_local_apic = NULL, | 220 | .smp_callin_clear_local_apic = NULL, |
221 | .store_NMI_vector = NULL, | 221 | .store_NMI_vector = NULL, |
222 | .restore_NMI_vector = NULL, | ||
223 | .inquire_remote_apic = NULL, | 222 | .inquire_remote_apic = NULL, |
224 | }; | 223 | }; |
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c index b5908735ca50..6adb5e6f4d92 100644 --- a/arch/x86/kernel/genx2apic_uv_x.c +++ b/arch/x86/kernel/genx2apic_uv_x.c | |||
@@ -292,7 +292,6 @@ struct genapic apic_x2apic_uv_x = { | |||
292 | .wait_for_init_deassert = NULL, | 292 | .wait_for_init_deassert = NULL, |
293 | .smp_callin_clear_local_apic = NULL, | 293 | .smp_callin_clear_local_apic = NULL, |
294 | .store_NMI_vector = NULL, | 294 | .store_NMI_vector = NULL, |
295 | .restore_NMI_vector = NULL, | ||
296 | .inquire_remote_apic = NULL, | 295 | .inquire_remote_apic = NULL, |
297 | }; | 296 | }; |
298 | 297 | ||
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c index ecdb230d0f2e..d9377af88cb3 100644 --- a/arch/x86/mach-generic/bigsmp.c +++ b/arch/x86/mach-generic/bigsmp.c | |||
@@ -111,6 +111,5 @@ struct genapic apic_bigsmp = { | |||
111 | 111 | ||
112 | .smp_callin_clear_local_apic = NULL, | 112 | .smp_callin_clear_local_apic = NULL, |
113 | .store_NMI_vector = NULL, | 113 | .store_NMI_vector = NULL, |
114 | .restore_NMI_vector = NULL, | ||
115 | .inquire_remote_apic = inquire_remote_apic, | 114 | .inquire_remote_apic = inquire_remote_apic, |
116 | }; | 115 | }; |
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c index 950925615a9e..b004257035c7 100644 --- a/arch/x86/mach-generic/default.c +++ b/arch/x86/mach-generic/default.c | |||
@@ -92,6 +92,5 @@ struct genapic apic_default = { | |||
92 | 92 | ||
93 | .smp_callin_clear_local_apic = NULL, | 93 | .smp_callin_clear_local_apic = NULL, |
94 | .store_NMI_vector = NULL, | 94 | .store_NMI_vector = NULL, |
95 | .restore_NMI_vector = NULL, | ||
96 | .inquire_remote_apic = inquire_remote_apic, | 95 | .inquire_remote_apic = inquire_remote_apic, |
97 | }; | 96 | }; |
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index 131907091380..62673a8002ff 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -148,6 +148,5 @@ struct genapic apic_es7000 = { | |||
148 | /* Nothing to do for most platforms, since cleared by the INIT cycle: */ | 148 | /* Nothing to do for most platforms, since cleared by the INIT cycle: */ |
149 | .smp_callin_clear_local_apic = NULL, | 149 | .smp_callin_clear_local_apic = NULL, |
150 | .store_NMI_vector = NULL, | 150 | .store_NMI_vector = NULL, |
151 | .restore_NMI_vector = NULL, | ||
152 | .inquire_remote_apic = inquire_remote_apic, | 151 | .inquire_remote_apic = inquire_remote_apic, |
153 | }; | 152 | }; |
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c index d7f7fcf21c39..2c3341564d14 100644 --- a/arch/x86/mach-generic/numaq.c +++ b/arch/x86/mach-generic/numaq.c | |||
@@ -112,6 +112,5 @@ struct genapic apic_numaq = { | |||
112 | 112 | ||
113 | .smp_callin_clear_local_apic = numaq_smp_callin_clear_local_apic, | 113 | .smp_callin_clear_local_apic = numaq_smp_callin_clear_local_apic, |
114 | .store_NMI_vector = numaq_store_NMI_vector, | 114 | .store_NMI_vector = numaq_store_NMI_vector, |
115 | .restore_NMI_vector = numaq_restore_NMI_vector, | ||
116 | .inquire_remote_apic = inquire_remote_apic, | 115 | .inquire_remote_apic = inquire_remote_apic, |
117 | }; | 116 | }; |
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c index 46fca79f8310..c2471a9fa8f3 100644 --- a/arch/x86/mach-generic/summit.c +++ b/arch/x86/mach-generic/summit.c | |||
@@ -91,6 +91,5 @@ struct genapic apic_summit = { | |||
91 | 91 | ||
92 | .smp_callin_clear_local_apic = NULL, | 92 | .smp_callin_clear_local_apic = NULL, |
93 | .store_NMI_vector = NULL, | 93 | .store_NMI_vector = NULL, |
94 | .restore_NMI_vector = NULL, | ||
95 | .inquire_remote_apic = inquire_remote_apic, | 94 | .inquire_remote_apic = inquire_remote_apic, |
96 | }; | 95 | }; |