linux/arch/x86/kernel/apic
Alexander Gordeev 8637e38aff x86/apic: Avoid useless scanning thru a cpumask in assign_irq_vector()
In case of static vector allocation domains (i.e. flat) if all
vector numbers are exhausted, an attempt to assign a new vector
will lead to useless scans through all CPUs in the cpumask, even
though it is known that each new pass would fail. Make this
corner case less painful by letting report whether the vector
allocation domain depends on passed arguments or not and stop
scanning early.

The same could have been achived by introducing a static flag to
the apic operations. But let's allow vector_allocation_domain()
have more intelligence here and decide dynamically, in case we
would need it in the future.

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/20120607131542.GE4759@dhcp-26-207.brq.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2012-06-08 11:44:29 +02:00
..
Makefile x86: Add NumaChip support 2011-12-05 17:17:24 +01:00
apic.c x86/apic: Factor out default cpu_mask_to_apicid() operations 2012-06-06 10:22:18 +02:00
apic_flat_64.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
apic_noop.c x86/apic: Avoid useless scanning thru a cpumask in assign_irq_vector() 2012-06-08 11:44:29 +02:00
apic_numachip.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
bigsmp_32.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
es7000_32.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
hw_nmi.c x86, nmi: Wire up NMI handlers to new routines 2011-10-10 06:56:57 +02:00
io_apic.c x86/apic: Avoid useless scanning thru a cpumask in assign_irq_vector() 2012-06-08 11:44:29 +02:00
ipi.c x86: Always use x86_cpu_to_logical_apicid for cpu -> logical apic id 2011-01-28 14:54:05 +01:00
numaq_32.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
probe_32.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
probe_64.c x86, apic: Make apic drivers static 2011-05-22 11:48:04 +02:00
summit_32.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
x2apic_cluster.c x86/apic: Factor out default target_cpus() operation 2012-06-06 10:22:17 +02:00
x2apic_phys.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00
x2apic_uv_x.c x86/apic: Factor out default vector_allocation_domain() operation 2012-06-08 11:44:27 +02:00