diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2012-06-07 15:14:49 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-06-08 11:44:27 +0200 |
commit | 9d8e10667624ea6411f04495aef1fa4a8a778ee8 (patch) | |
tree | d804e319fbb27a21e532b9888d9ee3b13c2640a9 /arch/x86/kernel/apic/apic_noop.c | |
parent | 6398268d2bc454735f11e08705e858f9fdf5c750 (diff) | |
download | op-kernel-dev-9d8e10667624ea6411f04495aef1fa4a8a778ee8.zip op-kernel-dev-9d8e10667624ea6411f04495aef1fa4a8a778ee8.tar.gz |
x86/apic: Factor out default vector_allocation_domain() operation
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/20120607131449.GC4759@dhcp-26-207.brq.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/apic/apic_noop.c')
-rw-r--r-- | arch/x86/kernel/apic/apic_noop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/apic_noop.c b/arch/x86/kernel/apic/apic_noop.c index 7c3dd4f..3e43cf5 100644 --- a/arch/x86/kernel/apic/apic_noop.c +++ b/arch/x86/kernel/apic/apic_noop.c @@ -104,8 +104,7 @@ static void noop_vector_allocation_domain(int cpu, struct cpumask *retmask) { if (cpu != 0) pr_warning("APIC: Vector allocated for non-BSP cpu\n"); - cpumask_clear(retmask); - cpumask_set_cpu(cpu, retmask); + cpumask_copy(retmask, cpumask_of(cpu)); } static u32 noop_apic_read(u32 reg) |