diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 10:21:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:32 -0500 |
commit | a965936643e28af8152d9e960b966baa1a5588a2 (patch) | |
tree | f86d64139f85fcaa627840275519a03f3b4fcc86 /arch/x86/mach-generic | |
parent | abfa584c8df8b691cf18f51c7d4af27e5b32be4a (diff) |
x86, smp: refactor ->wait_for_init_deassert()
- spread out the namespace on a per APIC driver basis
- handle a NULL ->wait_for_init_deassert() as a 'dont wait' default method
- remove NUMAQ and Summit handlers
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-generic')
-rw-r--r-- | arch/x86/mach-generic/bigsmp.c | 4 | ||||
-rw-r--r-- | arch/x86/mach-generic/default.c | 4 | ||||
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 4 | ||||
-rw-r--r-- | arch/x86/mach-generic/numaq.c | 5 | ||||
-rw-r--r-- | arch/x86/mach-generic/summit.c | 4 |
5 files changed, 16 insertions, 5 deletions
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c index a317fbe07fdf..40910bfd1b42 100644 --- a/arch/x86/mach-generic/bigsmp.c +++ b/arch/x86/mach-generic/bigsmp.c | |||
@@ -106,7 +106,9 @@ struct genapic apic_bigsmp = { | |||
106 | .wakeup_cpu = NULL, | 106 | .wakeup_cpu = NULL, |
107 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, | 107 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, |
108 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, | 108 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, |
109 | .wait_for_init_deassert = wait_for_init_deassert, | 109 | |
110 | .wait_for_init_deassert = default_wait_for_init_deassert, | ||
111 | |||
110 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, | 112 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, |
111 | .store_NMI_vector = store_NMI_vector, | 113 | .store_NMI_vector = store_NMI_vector, |
112 | .restore_NMI_vector = restore_NMI_vector, | 114 | .restore_NMI_vector = restore_NMI_vector, |
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c index 17d8f9c22180..c2464843df9e 100644 --- a/arch/x86/mach-generic/default.c +++ b/arch/x86/mach-generic/default.c | |||
@@ -87,7 +87,9 @@ struct genapic apic_default = { | |||
87 | .wakeup_cpu = NULL, | 87 | .wakeup_cpu = NULL, |
88 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, | 88 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, |
89 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, | 89 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, |
90 | .wait_for_init_deassert = wait_for_init_deassert, | 90 | |
91 | .wait_for_init_deassert = default_wait_for_init_deassert, | ||
92 | |||
91 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, | 93 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, |
92 | .store_NMI_vector = store_NMI_vector, | 94 | .store_NMI_vector = store_NMI_vector, |
93 | .restore_NMI_vector = restore_NMI_vector, | 95 | .restore_NMI_vector = restore_NMI_vector, |
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index 871e85445e21..4cb3984834ed 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -142,7 +142,9 @@ struct genapic apic_es7000 = { | |||
142 | .wakeup_cpu = NULL, | 142 | .wakeup_cpu = NULL, |
143 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, | 143 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, |
144 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, | 144 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, |
145 | .wait_for_init_deassert = wait_for_init_deassert, | 145 | |
146 | .wait_for_init_deassert = default_wait_for_init_deassert, | ||
147 | |||
146 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, | 148 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, |
147 | .store_NMI_vector = store_NMI_vector, | 149 | .store_NMI_vector = store_NMI_vector, |
148 | .restore_NMI_vector = restore_NMI_vector, | 150 | .restore_NMI_vector = restore_NMI_vector, |
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c index 0b496ab5450c..fb03867e7c0f 100644 --- a/arch/x86/mach-generic/numaq.c +++ b/arch/x86/mach-generic/numaq.c | |||
@@ -106,7 +106,10 @@ struct genapic apic_numaq = { | |||
106 | .wakeup_cpu = NULL, | 106 | .wakeup_cpu = NULL, |
107 | .trampoline_phys_low = NUMAQ_TRAMPOLINE_PHYS_LOW, | 107 | .trampoline_phys_low = NUMAQ_TRAMPOLINE_PHYS_LOW, |
108 | .trampoline_phys_high = NUMAQ_TRAMPOLINE_PHYS_HIGH, | 108 | .trampoline_phys_high = NUMAQ_TRAMPOLINE_PHYS_HIGH, |
109 | .wait_for_init_deassert = wait_for_init_deassert, | 109 | |
110 | /* We don't do anything here because we use NMI's to boot instead */ | ||
111 | .wait_for_init_deassert = NULL, | ||
112 | |||
110 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, | 113 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, |
111 | .store_NMI_vector = store_NMI_vector, | 114 | .store_NMI_vector = store_NMI_vector, |
112 | .restore_NMI_vector = restore_NMI_vector, | 115 | .restore_NMI_vector = restore_NMI_vector, |
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c index c4799cd34592..fdca78b96b6a 100644 --- a/arch/x86/mach-generic/summit.c +++ b/arch/x86/mach-generic/summit.c | |||
@@ -86,7 +86,9 @@ struct genapic apic_summit = { | |||
86 | .wakeup_cpu = NULL, | 86 | .wakeup_cpu = NULL, |
87 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, | 87 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, |
88 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, | 88 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, |
89 | .wait_for_init_deassert = wait_for_init_deassert, | 89 | |
90 | .wait_for_init_deassert = default_wait_for_init_deassert, | ||
91 | |||
90 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, | 92 | .smp_callin_clear_local_apic = smp_callin_clear_local_apic, |
91 | .store_NMI_vector = store_NMI_vector, | 93 | .store_NMI_vector = store_NMI_vector, |
92 | .restore_NMI_vector = restore_NMI_vector, | 94 | .restore_NMI_vector = restore_NMI_vector, |