diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-06-26 05:21:54 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-06-26 05:21:54 -0400 |
commit | 3b16cf874861436725c43ba0b68bdd799297be7c (patch) | |
tree | 8e48647e3dce5dde6917f260f93c4b9f19945c55 /arch/x86/kernel/smpboot.c | |
parent | 3d4422332711ef48ef0f132f1fcbfcbd56c7f3d1 (diff) |
x86: convert to generic helpers for IPI function calls
This converts x86, x86-64, and xen to use the new helpers for
smp_call_function() and friends, and adds support for
smp_call_function_single().
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 56078d61c793..89647898f546 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -345,7 +345,7 @@ static void __cpuinit start_secondary(void *unused) | |||
345 | * lock helps us to not include this cpu in a currently in progress | 345 | * lock helps us to not include this cpu in a currently in progress |
346 | * smp_call_function(). | 346 | * smp_call_function(). |
347 | */ | 347 | */ |
348 | lock_ipi_call_lock(); | 348 | ipi_call_lock_irq(); |
349 | #ifdef CONFIG_X86_64 | 349 | #ifdef CONFIG_X86_64 |
350 | spin_lock(&vector_lock); | 350 | spin_lock(&vector_lock); |
351 | 351 | ||
@@ -357,7 +357,7 @@ static void __cpuinit start_secondary(void *unused) | |||
357 | spin_unlock(&vector_lock); | 357 | spin_unlock(&vector_lock); |
358 | #endif | 358 | #endif |
359 | cpu_set(smp_processor_id(), cpu_online_map); | 359 | cpu_set(smp_processor_id(), cpu_online_map); |
360 | unlock_ipi_call_lock(); | 360 | ipi_call_unlock_irq(); |
361 | per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; | 361 | per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; |
362 | 362 | ||
363 | setup_secondary_clock(); | 363 | setup_secondary_clock(); |