aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/apic_numachip.c
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2012-06-05 07:23:29 -0400
committerIngo Molnar <mingo@kernel.org>2012-06-06 04:22:17 -0400
commitbf721d3a3bc7a731add45c8078b142b494ab413e (patch)
tree7c0671a46ae23c5c6389ae910f7e9aa5ebaf99fb /arch/x86/kernel/apic/apic_numachip.c
parent49d0c7a0a425a89190b7c3b1445faba9eb227bec (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/apic_numachip.c')
-rw-r--r--arch/x86/kernel/apic/apic_numachip.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic/apic_numachip.c b/arch/x86/kernel/apic/apic_numachip.c
index 6ec6d5d297c..3255a60fcc9 100644
--- a/arch/x86/kernel/apic/apic_numachip.c
+++ b/arch/x86/kernel/apic/apic_numachip.c
@@ -72,11 +72,6 @@ static int numachip_phys_pkg_id(int initial_apic_id, int index_msb)
72 return initial_apic_id >> index_msb; 72 return initial_apic_id >> index_msb;
73} 73}
74 74
75static const struct cpumask *numachip_target_cpus(void)
76{
77 return cpu_online_mask;
78}
79
80static void numachip_vector_allocation_domain(int cpu, struct cpumask *retmask) 75static void numachip_vector_allocation_domain(int cpu, struct cpumask *retmask)
81{ 76{
82 cpumask_clear(retmask); 77 cpumask_clear(retmask);
@@ -253,7 +248,7 @@ static struct apic apic_numachip __refconst = {
253 .irq_delivery_mode = dest_Fixed, 248 .irq_delivery_mode = dest_Fixed,
254 .irq_dest_mode = 0, /* physical */ 249 .irq_dest_mode = 0, /* physical */
255 250
256 .target_cpus = numachip_target_cpus, 251 .target_cpus = online_target_cpus,
257 .disable_esr = 0, 252 .disable_esr = 0,
258 .dest_logical = 0, 253 .dest_logical = 0,
259 .check_apicid_used = NULL, 254 .check_apicid_used = NULL,