From d28a934f6b9c49ef03af39f5d03fd1d658c21f5f Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Tue, 19 Aug 2008 20:50:50 -0700 Subject: [PATCH] --- yaml --- r: 116455 b: refs/heads/master c: ffd5aae7817fba22c5c3e304a31c44fa0a4e9a97 h: refs/heads/master i: 116453: eefa787bb92aa9e63ae7ddc83db82dbb40fdaa19 116451: efa6698ca38297fc30fdf7b5df6fe7e6a7b2949a 116447: 6fb2ca322ed690ae3507b54f9f64f9be0d469b9b v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/io_apic.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f9bafed25839..5173572f27d1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 29ccbbf232c035b8c7ff0c5060fbe30a66ed9b99 +refs/heads/master: ffd5aae7817fba22c5c3e304a31c44fa0a4e9a97 diff --git a/trunk/arch/x86/kernel/io_apic.c b/trunk/arch/x86/kernel/io_apic.c index 5de2d38812aa..bf0e66d73030 100644 --- a/trunk/arch/x86/kernel/io_apic.c +++ b/trunk/arch/x86/kernel/io_apic.c @@ -1777,7 +1777,12 @@ __apicdebuginit(void) print_local_APIC(void *dummy) __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)