mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86-64: using cpu_online_map instead of APIC_ALL_CPUS
@ 2006-10-22 16:42 Yinghai Lu
  2006-10-22 16:50 ` Muli Ben-Yehuda
  2006-10-22 17:55 ` Eric W. Biederman
  0 siblings, 2 replies; 6+ messages in thread
From: Yinghai Lu @ 2006-10-22 16:42 UTC (permalink / raw)
  To: Eric W. Biederman, Andi Kleen, Muli Ben-Yehuda; +Cc: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

Using cpu_online_map instead of APIC_ALL_CPUS for flat apic mode, So
__assign_irq_vector can refer correct per_cpu data.

Cc: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Yinghai Lu <yinghai.lu@amd.com>

[-- Attachment #2: vector_allocation_domain.diff --]
[-- Type: text/x-patch, Size: 485 bytes --]

diff --git a/arch/x86_64/kernel/genapic_flat.c b/arch/x86_64/kernel/genapic_flat.c
index 7c01db8..490df69 100644
--- a/arch/x86_64/kernel/genapic_flat.c
+++ b/arch/x86_64/kernel/genapic_flat.c
@@ -32,8 +32,7 @@ static cpumask_t flat_vector_allocation_
 	 * deliver interrupts to the wrong hyperthread when only one
 	 * hyperthread was specified in the interrupt desitination.
 	 */
-	cpumask_t domain = { { [0] = APIC_ALL_CPUS, } };
-	return domain;
+	return cpu_online_map;
 }
 
 /*

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-23  8:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-22 16:42 [PATCH] x86-64: using cpu_online_map instead of APIC_ALL_CPUS Yinghai Lu
2006-10-22 16:50 ` Muli Ben-Yehuda
2006-10-22 17:55 ` Eric W. Biederman
2006-10-22 19:58   ` Yinghai Lu
2006-10-23  7:43     ` Muli Ben-Yehuda
2006-10-23  8:05       ` yhlu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®