mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 23:51:46 +00:00
sh: Consolidate cpu_relax()/cpu_sleep() definitions across _32/_64.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
f74c034d52
commit
eb67cf14ae
@ -82,6 +82,9 @@ extern struct sh_cpuinfo cpu_data[];
|
|||||||
#define current_cpu_data cpu_data[smp_processor_id()]
|
#define current_cpu_data cpu_data[smp_processor_id()]
|
||||||
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
|
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
|
||||||
|
|
||||||
|
#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
|
||||||
|
#define cpu_relax() barrier()
|
||||||
|
|
||||||
/* Forward decl */
|
/* Forward decl */
|
||||||
struct seq_operations;
|
struct seq_operations;
|
||||||
|
|
||||||
|
@ -183,9 +183,6 @@ extern unsigned long get_wchan(struct task_struct *p);
|
|||||||
|
|
||||||
#define user_stack_pointer(regs) ((regs)->regs[15])
|
#define user_stack_pointer(regs) ((regs)->regs[15])
|
||||||
|
|
||||||
#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
|
|
||||||
#define cpu_relax() barrier()
|
|
||||||
|
|
||||||
#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH3) || \
|
#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH3) || \
|
||||||
defined(CONFIG_CPU_SH4)
|
defined(CONFIG_CPU_SH4)
|
||||||
#define PREFETCH_STRIDE L1_CACHE_BYTES
|
#define PREFETCH_STRIDE L1_CACHE_BYTES
|
||||||
|
@ -228,7 +228,5 @@ extern unsigned long get_wchan(struct task_struct *p);
|
|||||||
|
|
||||||
#define user_stack_pointer(regs) ((regs)->sp)
|
#define user_stack_pointer(regs) ((regs)->sp)
|
||||||
|
|
||||||
#define cpu_relax() barrier()
|
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __ASM_SH_PROCESSOR_64_H */
|
#endif /* __ASM_SH_PROCESSOR_64_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user