diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 10:31:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:33 -0500 |
commit | 7bd06ec63a1204ca44b9f1dc487b8632016162d1 (patch) | |
tree | f9c89011185f9ba4be2a20e7d9fed14f3b50ab7e /arch/x86/mach-generic | |
parent | 333344d94300500e401cffb4eea10a5ab6e5a41d (diff) |
x86, smp: refactor ->store/restore_NMI_vector() methods
Only NUMAQ does something substantial here, because it initializes
via NMIs (not via INIT as standard SMP startup) - so it needs to
store and restore the NMI vector.
- extend the generic code to handle NULL methods
- clear out dummy methods and replace them with NULL
- clean up: remove wrapper macros, etc.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-generic')
-rw-r--r-- | arch/x86/mach-generic/bigsmp.c | 5 | ||||
-rw-r--r-- | arch/x86/mach-generic/default.c | 4 | ||||
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 5 | ||||
-rw-r--r-- | arch/x86/mach-generic/numaq.c | 4 | ||||
-rw-r--r-- | arch/x86/mach-generic/summit.c | 5 |
5 files changed, 10 insertions, 13 deletions
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c index bd069e7b521c..ecdb230d0f2e 100644 --- a/arch/x86/mach-generic/bigsmp.c +++ b/arch/x86/mach-generic/bigsmp.c | |||
@@ -110,8 +110,7 @@ struct genapic apic_bigsmp = { | |||
110 | .wait_for_init_deassert = default_wait_for_init_deassert, | 110 | .wait_for_init_deassert = default_wait_for_init_deassert, |
111 | 111 | ||
112 | .smp_callin_clear_local_apic = NULL, | 112 | .smp_callin_clear_local_apic = NULL, |
113 | 113 | .store_NMI_vector = NULL, | |
114 | .store_NMI_vector = store_NMI_vector, | 114 | .restore_NMI_vector = NULL, |
115 | .restore_NMI_vector = 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/default.c b/arch/x86/mach-generic/default.c index a25e6eff048f..950925615a9e 100644 --- a/arch/x86/mach-generic/default.c +++ b/arch/x86/mach-generic/default.c | |||
@@ -91,7 +91,7 @@ struct genapic apic_default = { | |||
91 | .wait_for_init_deassert = default_wait_for_init_deassert, | 91 | .wait_for_init_deassert = default_wait_for_init_deassert, |
92 | 92 | ||
93 | .smp_callin_clear_local_apic = NULL, | 93 | .smp_callin_clear_local_apic = NULL, |
94 | .store_NMI_vector = store_NMI_vector, | 94 | .store_NMI_vector = NULL, |
95 | .restore_NMI_vector = restore_NMI_vector, | 95 | .restore_NMI_vector = NULL, |
96 | .inquire_remote_apic = inquire_remote_apic, | 96 | .inquire_remote_apic = inquire_remote_apic, |
97 | }; | 97 | }; |
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index ab41b5439145..131907091380 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -147,8 +147,7 @@ struct genapic apic_es7000 = { | |||
147 | 147 | ||
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 | 150 | .store_NMI_vector = NULL, | |
151 | .store_NMI_vector = store_NMI_vector, | 151 | .restore_NMI_vector = NULL, |
152 | .restore_NMI_vector = restore_NMI_vector, | ||
153 | .inquire_remote_apic = inquire_remote_apic, | 152 | .inquire_remote_apic = inquire_remote_apic, |
154 | }; | 153 | }; |
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c index 4d3924f8cd0b..d7f7fcf21c39 100644 --- a/arch/x86/mach-generic/numaq.c +++ b/arch/x86/mach-generic/numaq.c | |||
@@ -111,7 +111,7 @@ struct genapic apic_numaq = { | |||
111 | .wait_for_init_deassert = NULL, | 111 | .wait_for_init_deassert = NULL, |
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 = store_NMI_vector, | 114 | .store_NMI_vector = numaq_store_NMI_vector, |
115 | .restore_NMI_vector = restore_NMI_vector, | 115 | .restore_NMI_vector = numaq_restore_NMI_vector, |
116 | .inquire_remote_apic = inquire_remote_apic, | 116 | .inquire_remote_apic = inquire_remote_apic, |
117 | }; | 117 | }; |
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c index 2595baa7997e..46fca79f8310 100644 --- a/arch/x86/mach-generic/summit.c +++ b/arch/x86/mach-generic/summit.c | |||
@@ -90,8 +90,7 @@ struct genapic apic_summit = { | |||
90 | .wait_for_init_deassert = default_wait_for_init_deassert, | 90 | .wait_for_init_deassert = default_wait_for_init_deassert, |
91 | 91 | ||
92 | .smp_callin_clear_local_apic = NULL, | 92 | .smp_callin_clear_local_apic = NULL, |
93 | 93 | .store_NMI_vector = NULL, | |
94 | .store_NMI_vector = store_NMI_vector, | 94 | .restore_NMI_vector = NULL, |
95 | .restore_NMI_vector = restore_NMI_vector, | ||
96 | .inquire_remote_apic = inquire_remote_apic, | 95 | .inquire_remote_apic = inquire_remote_apic, |
97 | }; | 96 | }; |