Skip to contentSkip to conversation

x86: print local APIC of APs one by one

PATCH Applied Yinghai Lu 2 participants 2 messages Aug 17, 2008 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: print local APIC of APs one by one

instead of print that of all APs at the time

---
 arch/x86/kernel/io_apic.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
arch/x86/kernel/io_apic.c +6 -1
Index: linux-2.6/arch/x86/kernel/io_apic.c
===================================================================
@@ -1784,7 +1784,12 @@ __apicdebuginit(void) print_local_APIC(v
 
 __apicdebuginit(void) print_all_local_APICs(void)
 {
-	on_each_cpu(print_local_APIC, NULL, 1);
+	int cpu;
+
+	preempt_disable();
+	for_each_online_cpu(cpu)
+		smp_call_function_single(cpu, print_local_APIC, NULL, 1);
+	preempt_enable();
 }
 
 __apicdebuginit(void) print_PIC(void)
Applied
#1 lore raw
Quoted 1 line · Yinghai Lu

instead of print that of all APs at the time

applied to tip/irq/sparseirq - thanks Yinghai.

Ingo