]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
sh: Consolidate cpu_relax()/cpu_sleep() definitions across _32/_64.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 26 Nov 2008 06:47:44 +0000 (15:47 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:43:50 +0000 (18:43 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/processor.h
arch/sh/include/asm/processor_32.h
arch/sh/include/asm/processor_64.h

index 693364a20ad72e331a18ccdf391c01ac1b1a0a2b..f186fc6966b51bd68da1aea974d71abe41bd89b0 100644 (file)
@@ -82,6 +82,9 @@ extern struct sh_cpuinfo cpu_data[];
 #define current_cpu_data cpu_data[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 */
 struct seq_operations;
 
index 7b14f0cff9b32bd3e132c837966ba90fb3af9926..2bfb7353493a392131c818d89079ecb1d420318f 100644 (file)
@@ -183,9 +183,6 @@ extern unsigned long get_wchan(struct task_struct *p);
 
 #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) || \
     defined(CONFIG_CPU_SH4)
 #define PREFETCH_STRIDE                L1_CACHE_BYTES
index b0b4824dfc4ce9d081de5e250081681685e84252..96067e9397ea8133902c650ad2c45039ecd9f711 100644 (file)
@@ -228,7 +228,5 @@ extern unsigned long get_wchan(struct task_struct *p);
 
 #define user_stack_pointer(regs)       ((regs)->sp)
 
-#define cpu_relax()    barrier()
-
 #endif /* __ASSEMBLY__ */
 #endif /* __ASM_SH_PROCESSOR_64_H */