diff options
| author | Jens Axboe <jens.axboe@oracle.com> | 2008-06-26 05:22:13 -0400 |
|---|---|---|
| committer | Jens Axboe <jens.axboe@oracle.com> | 2008-06-26 05:22:13 -0400 |
| commit | b7d7a2404f80386307ccc0cde63d8d2a5e3bc85c (patch) | |
| tree | e8f4ff391f77ea4f91b4ee1367ca02e008581505 /include | |
| parent | 3b16cf874861436725c43ba0b68bdd799297be7c (diff) | |
powerpc: convert to generic helpers for IPI function calls
This converts ppc to use the new helpers for smp_call_function() and
friends, and adds support for smp_call_function_single().
ppc loses the timeout functionality of smp_call_function_mask() with
this change, as the generic code does not provide that.
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-powerpc/smp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-powerpc/smp.h b/include/asm-powerpc/smp.h index 505f35bacaa9..c663a1fa77c5 100644 --- a/include/asm-powerpc/smp.h +++ b/include/asm-powerpc/smp.h | |||
| @@ -67,10 +67,7 @@ DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); | |||
| 67 | * in /proc/interrupts will be wrong!!! --Troy */ | 67 | * in /proc/interrupts will be wrong!!! --Troy */ |
| 68 | #define PPC_MSG_CALL_FUNCTION 0 | 68 | #define PPC_MSG_CALL_FUNCTION 0 |
| 69 | #define PPC_MSG_RESCHEDULE 1 | 69 | #define PPC_MSG_RESCHEDULE 1 |
| 70 | /* This is unused now */ | 70 | #define PPC_MSG_CALL_FUNC_SINGLE 2 |
| 71 | #if 0 | ||
| 72 | #define PPC_MSG_MIGRATE_TASK 2 | ||
| 73 | #endif | ||
| 74 | #define PPC_MSG_DEBUGGER_BREAK 3 | 71 | #define PPC_MSG_DEBUGGER_BREAK 3 |
| 75 | 72 | ||
| 76 | void smp_init_iSeries(void); | 73 | void smp_init_iSeries(void); |
| @@ -117,6 +114,9 @@ extern void smp_generic_take_timebase(void); | |||
| 117 | 114 | ||
| 118 | extern struct smp_ops_t *smp_ops; | 115 | extern struct smp_ops_t *smp_ops; |
| 119 | 116 | ||
| 117 | extern void arch_send_call_function_single_ipi(int cpu); | ||
| 118 | extern void arch_send_call_function_ipi(cpumask_t mask); | ||
| 119 | |||
| 120 | #endif /* __ASSEMBLY__ */ | 120 | #endif /* __ASSEMBLY__ */ |
| 121 | 121 | ||
| 122 | #endif /* __KERNEL__ */ | 122 | #endif /* __KERNEL__ */ |
