sh: pass through ioremap() for non-mmu processors.
[deliverable/linux.git] / arch / sh / include / asm / smp.h
CommitLineData
1da177e4
LT
1#ifndef __ASM_SH_SMP_H
2#define __ASM_SH_SMP_H
3
1da177e4
LT
4#include <linux/bitops.h>
5#include <linux/cpumask.h>
6
7#ifdef CONFIG_SMP
8
66c5227e 9#include <linux/spinlock.h>
1da177e4
LT
10#include <asm/atomic.h>
11#include <asm/current.h>
12
39c715b7 13#define raw_smp_processor_id() (current_thread_info()->cpu)
aba1030a
PM
14#define hard_smp_processor_id() plat_smp_processor_id()
15
16/* Map from cpu id to sequential logical cpu number. */
17extern int __cpu_number_map[NR_CPUS];
18#define cpu_number_map(cpu) __cpu_number_map[cpu]
19
20/* The reverse map from sequential logical cpu number to cpu id. */
21extern int __cpu_logical_map[NR_CPUS];
22#define cpu_logical_map(cpu) __cpu_logical_map[cpu]
1da177e4 23
6f52707e
PM
24enum {
25 SMP_MSG_FUNCTION,
26 SMP_MSG_RESCHEDULE,
27 SMP_MSG_FUNCTION_SINGLE,
28 SMP_MSG_TIMER,
29
30 SMP_MSG_NR, /* must be last */
31};
1da177e4 32
173a44dd 33void smp_message_recv(unsigned int msg);
320ab2b0 34void smp_timer_broadcast(const struct cpumask *mask);
6f52707e 35
8c24594d
PM
36void local_timer_interrupt(void);
37void local_timer_setup(unsigned int cpu);
38
aba1030a
PM
39void plat_smp_setup(void);
40void plat_prepare_cpus(unsigned int max_cpus);
41int plat_smp_processor_id(void);
42void plat_start_cpu(unsigned int cpu, unsigned long entry_point);
43void plat_send_ipi(unsigned int cpu, unsigned int message);
6f52707e
PM
44
45void arch_send_call_function_single_ipi(int cpu);
46void arch_send_call_function_ipi(cpumask_t mask);
aba1030a
PM
47
48#else
1da177e4 49
027e56e6
PM
50#define hard_smp_processor_id() (0)
51
aba1030a
PM
52#endif /* CONFIG_SMP */
53
1da177e4 54#endif /* __ASM_SH_SMP_H */
This page took 0.480841 seconds and 5 git commands to generate.