diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2012-06-05 07:23:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-06-06 04:22:17 -0400 |
commit | bf721d3a3bc7a731add45c8078b142b494ab413e (patch) | |
tree | 7c0671a46ae23c5c6389ae910f7e9aa5ebaf99fb /arch/x86/kernel/apic/bigsmp_32.c | |
parent | 49d0c7a0a425a89190b7c3b1445faba9eb227bec (diff) |
x86/apic: Factor out default target_cpus() operation
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/20120605112324.GA11449@dhcp-26-207.brq.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/apic/bigsmp_32.c')
-rw-r--r-- | arch/x86/kernel/apic/bigsmp_32.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c index 31fbdbfbf960..c288e81e00ff 100644 --- a/arch/x86/kernel/apic/bigsmp_32.c +++ b/arch/x86/kernel/apic/bigsmp_32.c | |||
@@ -26,15 +26,6 @@ static int bigsmp_apic_id_registered(void) | |||
26 | return 1; | 26 | return 1; |
27 | } | 27 | } |
28 | 28 | ||
29 | static const struct cpumask *bigsmp_target_cpus(void) | ||
30 | { | ||
31 | #ifdef CONFIG_SMP | ||
32 | return cpu_online_mask; | ||
33 | #else | ||
34 | return cpumask_of(0); | ||
35 | #endif | ||
36 | } | ||
37 | |||
38 | static unsigned long bigsmp_check_apicid_used(physid_mask_t *map, int apicid) | 29 | static unsigned long bigsmp_check_apicid_used(physid_mask_t *map, int apicid) |
39 | { | 30 | { |
40 | return 0; | 31 | return 0; |
@@ -205,7 +196,7 @@ static struct apic apic_bigsmp = { | |||
205 | /* phys delivery to target CPU: */ | 196 | /* phys delivery to target CPU: */ |
206 | .irq_dest_mode = 0, | 197 | .irq_dest_mode = 0, |
207 | 198 | ||
208 | .target_cpus = bigsmp_target_cpus, | 199 | .target_cpus = default_target_cpus, |
209 | .disable_esr = 1, | 200 | .disable_esr = 1, |
210 | .dest_logical = 0, | 201 | .dest_logical = 0, |
211 | .check_apicid_used = bigsmp_check_apicid_used, | 202 | .check_apicid_used = bigsmp_check_apicid_used, |