sh: Tidy up duplication in irq/swab/timex.h.
authorPaul Mundt <lethal@linux-sh.org>
Sun, 14 Jun 2009 14:21:54 +0000 (23:21 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 14 Jun 2009 14:21:54 +0000 (23:21 +0900)
The asm-generic versions have some helper definitions that we can use
instead, drop our definitions and use those instead.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/irq.h
arch/sh/include/asm/swab.h
arch/sh/include/asm/timex.h

index a2b8c99cc06f1a6453bd9162e1e0c34e6a9b0dee..df8e1500527cedfe88267f6c9a590994acc0e9ad 100644 (file)
@@ -39,7 +39,6 @@ static inline int generic_irq_demux(int irq)
        return irq;
 }
 
-#define irq_canonicalize(irq)  (irq)
 #define irq_demux(irq)         sh_mv.mv_irq_demux(irq)
 
 void init_IRQ(void);
@@ -54,6 +53,7 @@ extern void irq_ctx_exit(int cpu);
 # define irq_ctx_exit(cpu) do { } while (0)
 #endif
 
+#include <asm-generic/irq.h>
 #ifdef CONFIG_CPU_SH5
 #include <cpu/irq.h>
 #endif
index 0e08fe54ad71fcdb30b2a46756736e88bcdd3d34..1cd09767a7a3eed746b860d928316017dfd191f5 100644 (file)
@@ -7,8 +7,7 @@
  */
 #include <linux/compiler.h>
 #include <linux/types.h>
-
-#define __SWAB_64_THRU_32__
+#include <asm-generic/swab.h>
 
 static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
 {
index a873e24113cf7430cc5527f99278d1e11e2d6f0e..b556d49e5f2ba8742a343d6dc9bc8d61b7437029 100644 (file)
@@ -8,11 +8,6 @@
 
 #define CLOCK_TICK_RATE                (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */
 
-typedef unsigned long long cycles_t;
-
-static __inline__ cycles_t get_cycles (void)
-{
-       return 0;
-}
+#include <asm-generic/timex.h>
 
 #endif /* __ASM_SH_TIMEX_H */