diff options
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/smp.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/arch/sh/include/asm/smp.h b/arch/sh/include/asm/smp.h index 5ebe0d09559e..9d22cda67c29 100644 --- a/arch/sh/include/asm/smp.h +++ b/arch/sh/include/asm/smp.h | |||
@@ -21,19 +21,26 @@ extern int __cpu_number_map[NR_CPUS]; | |||
21 | extern int __cpu_logical_map[NR_CPUS]; | 21 | extern int __cpu_logical_map[NR_CPUS]; |
22 | #define cpu_logical_map(cpu) __cpu_logical_map[cpu] | 22 | #define cpu_logical_map(cpu) __cpu_logical_map[cpu] |
23 | 23 | ||
24 | #define SMP_MSG_FUNCTION 0 | 24 | enum { |
25 | #define SMP_MSG_RESCHEDULE 1 | 25 | SMP_MSG_FUNCTION, |
26 | #define SMP_MSG_FUNCTION_SINGLE 2 | 26 | SMP_MSG_RESCHEDULE, |
27 | #define SMP_MSG_NR 3 | 27 | SMP_MSG_FUNCTION_SINGLE, |
28 | SMP_MSG_TIMER, | ||
29 | |||
30 | SMP_MSG_NR, /* must be last */ | ||
31 | }; | ||
28 | 32 | ||
29 | void smp_message_recv(unsigned int msg); | 33 | void smp_message_recv(unsigned int msg); |
34 | void smp_timer_broadcast(cpumask_t mask); | ||
35 | |||
30 | void plat_smp_setup(void); | 36 | void plat_smp_setup(void); |
31 | void plat_prepare_cpus(unsigned int max_cpus); | 37 | void plat_prepare_cpus(unsigned int max_cpus); |
32 | int plat_smp_processor_id(void); | 38 | int plat_smp_processor_id(void); |
33 | void plat_start_cpu(unsigned int cpu, unsigned long entry_point); | 39 | void plat_start_cpu(unsigned int cpu, unsigned long entry_point); |
34 | void plat_send_ipi(unsigned int cpu, unsigned int message); | 40 | void plat_send_ipi(unsigned int cpu, unsigned int message); |
35 | extern void arch_send_call_function_single_ipi(int cpu); | 41 | |
36 | extern void arch_send_call_function_ipi(cpumask_t mask); | 42 | void arch_send_call_function_single_ipi(int cpu); |
43 | void arch_send_call_function_ipi(cpumask_t mask); | ||
37 | 44 | ||
38 | #else | 45 | #else |
39 | 46 | ||