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 /include/asm-x86/mach-voyager | |
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 'include/asm-x86/mach-voyager')
-rw-r--r-- | include/asm-x86/mach-voyager/entry_arch.h | 2 | ||||
-rw-r--r-- | include/asm-x86/mach-voyager/irq_vectors.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-x86/mach-voyager/entry_arch.h b/include/asm-x86/mach-voyager/entry_arch.h index 4a1e1e8c10b6..ae52624b5937 100644 --- a/include/asm-x86/mach-voyager/entry_arch.h +++ b/include/asm-x86/mach-voyager/entry_arch.h | |||
@@ -23,4 +23,4 @@ BUILD_INTERRUPT(qic_invalidate_interrupt, QIC_INVALIDATE_CPI); | |||
23 | BUILD_INTERRUPT(qic_reschedule_interrupt, QIC_RESCHEDULE_CPI); | 23 | BUILD_INTERRUPT(qic_reschedule_interrupt, QIC_RESCHEDULE_CPI); |
24 | BUILD_INTERRUPT(qic_enable_irq_interrupt, QIC_ENABLE_IRQ_CPI); | 24 | BUILD_INTERRUPT(qic_enable_irq_interrupt, QIC_ENABLE_IRQ_CPI); |
25 | BUILD_INTERRUPT(qic_call_function_interrupt, QIC_CALL_FUNCTION_CPI); | 25 | BUILD_INTERRUPT(qic_call_function_interrupt, QIC_CALL_FUNCTION_CPI); |
26 | 26 | BUILD_INTERRUPT(qic_call_function_single_interrupt, QIC_CALL_FUNCTION_SINGLE_CPI); | |
diff --git a/include/asm-x86/mach-voyager/irq_vectors.h b/include/asm-x86/mach-voyager/irq_vectors.h index 165421f5821c..fda57ad37b5d 100644 --- a/include/asm-x86/mach-voyager/irq_vectors.h +++ b/include/asm-x86/mach-voyager/irq_vectors.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #define VIC_RESCHEDULE_CPI 4 | 33 | #define VIC_RESCHEDULE_CPI 4 |
34 | #define VIC_ENABLE_IRQ_CPI 5 | 34 | #define VIC_ENABLE_IRQ_CPI 5 |
35 | #define VIC_CALL_FUNCTION_CPI 6 | 35 | #define VIC_CALL_FUNCTION_CPI 6 |
36 | #define VIC_CALL_FUNCTION_SINGLE_CPI 7 | ||
36 | 37 | ||
37 | /* Now the QIC CPIs: Since we don't need the two initial levels, | 38 | /* Now the QIC CPIs: Since we don't need the two initial levels, |
38 | * these are 2 less than the VIC CPIs */ | 39 | * these are 2 less than the VIC CPIs */ |
@@ -42,9 +43,10 @@ | |||
42 | #define QIC_RESCHEDULE_CPI (VIC_RESCHEDULE_CPI - QIC_CPI_OFFSET) | 43 | #define QIC_RESCHEDULE_CPI (VIC_RESCHEDULE_CPI - QIC_CPI_OFFSET) |
43 | #define QIC_ENABLE_IRQ_CPI (VIC_ENABLE_IRQ_CPI - QIC_CPI_OFFSET) | 44 | #define QIC_ENABLE_IRQ_CPI (VIC_ENABLE_IRQ_CPI - QIC_CPI_OFFSET) |
44 | #define QIC_CALL_FUNCTION_CPI (VIC_CALL_FUNCTION_CPI - QIC_CPI_OFFSET) | 45 | #define QIC_CALL_FUNCTION_CPI (VIC_CALL_FUNCTION_CPI - QIC_CPI_OFFSET) |
46 | #define QIC_CALL_FUNCTION_SINGLE_CPI (VIC_CALL_FUNCTION_SINGLE_CPI - QIC_CPI_OFFSET) | ||
45 | 47 | ||
46 | #define VIC_START_FAKE_CPI VIC_TIMER_CPI | 48 | #define VIC_START_FAKE_CPI VIC_TIMER_CPI |
47 | #define VIC_END_FAKE_CPI VIC_CALL_FUNCTION_CPI | 49 | #define VIC_END_FAKE_CPI VIC_CALL_FUNCTION_SINGLE_CPI |
48 | 50 | ||
49 | /* this is the SYS_INT CPI. */ | 51 | /* this is the SYS_INT CPI. */ |
50 | #define VIC_SYS_INT 8 | 52 | #define VIC_SYS_INT 8 |