aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 10:31:52 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:33 -0500
commit333344d94300500e401cffb4eea10a5ab6e5a41d (patch)
tree21dd26c49dfba195a03e2fa860fe4d3123ca3de8 /arch/x86/mach-generic
parenta965936643e28af8152d9e960b966baa1a5588a2 (diff)
x86, smp: refactor ->smp_callin_clear_local_apic() methods
Only NUMAQ does something substantial here, because it initializes via NMIs (not via INIT as standard SMP startup) - so it needs to reset the APIC. - 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.c3
-rw-r--r--arch/x86/mach-generic/default.c2
-rw-r--r--arch/x86/mach-generic/es7000.c4
-rw-r--r--arch/x86/mach-generic/numaq.c2
-rw-r--r--arch/x86/mach-generic/summit.c3
5 files changed, 9 insertions, 5 deletions
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c
index 40910bfd1b4..bd069e7b521 100644
--- a/arch/x86/mach-generic/bigsmp.c
+++ b/arch/x86/mach-generic/bigsmp.c
@@ -109,7 +109,8 @@ struct genapic apic_bigsmp = {
109 109
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 = smp_callin_clear_local_apic, 112 .smp_callin_clear_local_apic = NULL,
113
113 .store_NMI_vector = store_NMI_vector, 114 .store_NMI_vector = store_NMI_vector,
114 .restore_NMI_vector = restore_NMI_vector, 115 .restore_NMI_vector = restore_NMI_vector,
115 .inquire_remote_apic = inquire_remote_apic, 116 .inquire_remote_apic = inquire_remote_apic,
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c
index c2464843df9..a25e6eff048 100644
--- a/arch/x86/mach-generic/default.c
+++ b/arch/x86/mach-generic/default.c
@@ -90,7 +90,7 @@ struct genapic apic_default = {
90 90
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 = smp_callin_clear_local_apic, 93 .smp_callin_clear_local_apic = NULL,
94 .store_NMI_vector = store_NMI_vector, 94 .store_NMI_vector = store_NMI_vector,
95 .restore_NMI_vector = restore_NMI_vector, 95 .restore_NMI_vector = restore_NMI_vector,
96 .inquire_remote_apic = inquire_remote_apic, 96 .inquire_remote_apic = inquire_remote_apic,
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c
index 4cb3984834e..ab41b543914 100644
--- a/arch/x86/mach-generic/es7000.c
+++ b/arch/x86/mach-generic/es7000.c
@@ -145,7 +145,9 @@ struct genapic apic_es7000 = {
145 145
146 .wait_for_init_deassert = default_wait_for_init_deassert, 146 .wait_for_init_deassert = default_wait_for_init_deassert,
147 147
148 .smp_callin_clear_local_apic = smp_callin_clear_local_apic, 148 /* Nothing to do for most platforms, since cleared by the INIT cycle: */
149 .smp_callin_clear_local_apic = NULL,
150
149 .store_NMI_vector = store_NMI_vector, 151 .store_NMI_vector = store_NMI_vector,
150 .restore_NMI_vector = restore_NMI_vector, 152 .restore_NMI_vector = restore_NMI_vector,
151 .inquire_remote_apic = inquire_remote_apic, 153 .inquire_remote_apic = inquire_remote_apic,
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c
index fb03867e7c0..4d3924f8cd0 100644
--- a/arch/x86/mach-generic/numaq.c
+++ b/arch/x86/mach-generic/numaq.c
@@ -110,7 +110,7 @@ struct genapic apic_numaq = {
110 /* We don't do anything here because we use NMI's to boot instead */ 110 /* We don't do anything here because we use NMI's to boot instead */
111 .wait_for_init_deassert = NULL, 111 .wait_for_init_deassert = NULL,
112 112
113 .smp_callin_clear_local_apic = 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 = store_NMI_vector,
115 .restore_NMI_vector = restore_NMI_vector, 115 .restore_NMI_vector = restore_NMI_vector,
116 .inquire_remote_apic = inquire_remote_apic, 116 .inquire_remote_apic = inquire_remote_apic,
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c
index fdca78b96b6..2595baa7997 100644
--- a/arch/x86/mach-generic/summit.c
+++ b/arch/x86/mach-generic/summit.c
@@ -89,7 +89,8 @@ struct genapic apic_summit = {
89 89
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 = smp_callin_clear_local_apic, 92 .smp_callin_clear_local_apic = NULL,
93
93 .store_NMI_vector = store_NMI_vector, 94 .store_NMI_vector = store_NMI_vector,
94 .restore_NMI_vector = restore_NMI_vector, 95 .restore_NMI_vector = restore_NMI_vector,
95 .inquire_remote_apic = inquire_remote_apic, 96 .inquire_remote_apic = inquire_remote_apic,