aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/smp.h19
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];
21extern int __cpu_logical_map[NR_CPUS]; 21extern 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 24enum {
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
29void smp_message_recv(unsigned int msg); 33void smp_message_recv(unsigned int msg);
34void smp_timer_broadcast(cpumask_t mask);
35
30void plat_smp_setup(void); 36void plat_smp_setup(void);
31void plat_prepare_cpus(unsigned int max_cpus); 37void plat_prepare_cpus(unsigned int max_cpus);
32int plat_smp_processor_id(void); 38int plat_smp_processor_id(void);
33void plat_start_cpu(unsigned int cpu, unsigned long entry_point); 39void plat_start_cpu(unsigned int cpu, unsigned long entry_point);
34void plat_send_ipi(unsigned int cpu, unsigned int message); 40void plat_send_ipi(unsigned int cpu, unsigned int message);
35extern void arch_send_call_function_single_ipi(int cpu); 41
36extern void arch_send_call_function_ipi(cpumask_t mask); 42void arch_send_call_function_single_ipi(int cpu);
43void arch_send_call_function_ipi(cpumask_t mask);
37 44
38#else 45#else
39 46