diff options
Diffstat (limited to 'arch/sh/include/asm/smp.h')
-rw-r--r-- | arch/sh/include/asm/smp.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/arch/sh/include/asm/smp.h b/arch/sh/include/asm/smp.h index 593343cd26ee..85b660c17eb0 100644 --- a/arch/sh/include/asm/smp.h +++ b/arch/sh/include/asm/smp.h | |||
@@ -21,25 +21,29 @@ 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 | /* I've no idea what the real meaning of this is */ | 24 | enum { |
25 | #define PROC_CHANGE_PENALTY 20 | 25 | SMP_MSG_FUNCTION, |
26 | SMP_MSG_RESCHEDULE, | ||
27 | SMP_MSG_FUNCTION_SINGLE, | ||
28 | SMP_MSG_TIMER, | ||
26 | 29 | ||
27 | #define NO_PROC_ID (-1) | 30 | SMP_MSG_NR, /* must be last */ |
31 | }; | ||
28 | 32 | ||
29 | #define SMP_MSG_FUNCTION 0 | 33 | void smp_message_recv(unsigned int msg); |
30 | #define SMP_MSG_RESCHEDULE 1 | 34 | void smp_timer_broadcast(cpumask_t mask); |
31 | #define SMP_MSG_FUNCTION_SINGLE 2 | 35 | |
32 | #define SMP_MSG_NR 3 | 36 | void local_timer_interrupt(void); |
37 | void local_timer_setup(unsigned int cpu); | ||
33 | 38 | ||
34 | void plat_smp_setup(void); | 39 | void plat_smp_setup(void); |
35 | void plat_prepare_cpus(unsigned int max_cpus); | 40 | void plat_prepare_cpus(unsigned int max_cpus); |
36 | int plat_smp_processor_id(void); | 41 | int plat_smp_processor_id(void); |
37 | void plat_start_cpu(unsigned int cpu, unsigned long entry_point); | 42 | void plat_start_cpu(unsigned int cpu, unsigned long entry_point); |
38 | void plat_send_ipi(unsigned int cpu, unsigned int message); | 43 | void plat_send_ipi(unsigned int cpu, unsigned int message); |
39 | int plat_register_ipi_handler(unsigned int message, | 44 | |
40 | void (*handler)(void *), void *arg); | 45 | void arch_send_call_function_single_ipi(int cpu); |
41 | extern void arch_send_call_function_single_ipi(int cpu); | 46 | void arch_send_call_function_ipi(cpumask_t mask); |
42 | extern void arch_send_call_function_ipi(cpumask_t mask); | ||
43 | 47 | ||
44 | #else | 48 | #else |
45 | 49 | ||