sh: Kill off the now unused ARCH_USES_GETTIMEOFFSET code.
authorPaul Mundt <lethal@linux-sh.org>
Sun, 3 May 2009 09:18:14 +0000 (18:18 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 3 May 2009 09:18:14 +0000 (18:18 +0900)
Now that the stragglers (MTU2/CMT/etc.) have been rewritten and we are
selecting both GENERIC_TIME and GENERIC_CLOCKEVENTS, the get_offset()
timer op is completely unused. As a result, we are now able to kill off
the ARCH_USES_GETTIMEOFFSET references.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/timer.h
arch/sh/kernel/time_32.c

index 581e3fe3fe040fdc2a1c198196e0d699d97f312f..cb16645d839726df34a4ce66b66509a40a5713c3 100644 (file)
@@ -9,9 +9,6 @@ struct sys_timer_ops {
        int (*init)(void);
        int (*start)(void);
        int (*stop)(void);
-#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
-       unsigned long (*get_offset)(void);
-#endif
 };
 
 struct sys_timer {
@@ -26,13 +23,6 @@ struct sys_timer {
 extern struct sys_timer tmu_timer;
 extern struct sys_timer *sys_timer;
 
-#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
-static inline unsigned long get_timer_offset(void)
-{
-       return sys_timer->ops->get_offset();
-}
-#endif
-
 /* arch/sh/kernel/timers/timer.c */
 struct sys_timer *get_sys_timer(void);
 
index 9d34dff149942c8a3861e7bc6b8889d856d87c07..d41ca4cf20cf931f86d15b4e4db5691d42f63b8c 100644 (file)
@@ -83,13 +83,6 @@ static int __init rtc_generic_init(void)
 }
 module_init(rtc_generic_init);
 
-#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
-u32 arch_gettimeoffset(void)
-{
-       return get_timer_offset() * 1000;
-}
-#endif /* CONFIG_ARCH_USES_GETTIMEOFFSET */
-
 /* last time the RTC clock got updated */
 static long last_rtc_update;
 
@@ -185,7 +178,6 @@ struct clocksource clocksource_sh = {
        .name           = "SuperH",
 };
 
-#ifndef CONFIG_ARCH_USES_GETTIMEOFFSET
 unsigned long long sched_clock(void)
 {
        unsigned long long cycles;
@@ -197,7 +189,6 @@ unsigned long long sched_clock(void)
        cycles = clocksource_sh.read(&clocksource_sh);
        return cyc2ns(&clocksource_sh, cycles);
 }
-#endif
 
 static void __init sh_late_time_init(void)
 {
This page took 0.02567 seconds and 5 git commands to generate.