aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/apic.h
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2012-06-07 09:14:49 -0400
committerIngo Molnar <mingo@kernel.org>2012-06-08 05:44:27 -0400
commit9d8e10667624ea6411f04495aef1fa4a8a778ee8 (patch)
treed804e319fbb27a21e532b9888d9ee3b13c2640a9 /arch/x86/include/asm/apic.h
parent6398268d2bc454735f11e08705e858f9fdf5c750 (diff)
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/include/asm/apic.h')
-rw-r--r--arch/x86/include/asm/apic.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index bef571769e68..feb2dbdae9ec 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -615,6 +615,27 @@ extern unsigned int
615default_cpu_mask_to_apicid_and(const struct cpumask *cpumask, 615default_cpu_mask_to_apicid_and(const struct cpumask *cpumask,
616 const struct cpumask *andmask); 616 const struct cpumask *andmask);
617 617
618static inline void
619flat_vector_allocation_domain(int cpu, struct cpumask *retmask)
620{
621 /* Careful. Some cpus do not strictly honor the set of cpus
622 * specified in the interrupt destination when using lowest
623 * priority interrupt delivery mode.
624 *
625 * In particular there was a hyperthreading cpu observed to
626 * deliver interrupts to the wrong hyperthread when only one
627 * hyperthread was specified in the interrupt desitination.
628 */
629 cpumask_clear(retmask);
630 cpumask_bits(retmask)[0] = APIC_ALL_CPUS;
631}
632
633static inline void
634default_vector_allocation_domain(int cpu, struct cpumask *retmask)
635{
636 cpumask_copy(retmask, cpumask_of(cpu));
637}
638
618static inline unsigned long default_check_apicid_used(physid_mask_t *map, int apicid) 639static inline unsigned long default_check_apicid_used(physid_mask_t *map, int apicid)
619{ 640{
620 return physid_isset(apicid, *map); 641 return physid_isset(apicid, *map);