aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/timer.h')
-rw-r--r--arch/sh/include/asm/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/timer.h b/arch/sh/include/asm/timer.h
index 8f80a55c04ae..9c968d19cb9b 100644
--- a/arch/sh/include/asm/timer.h
+++ b/arch/sh/include/asm/timer.h
@@ -9,7 +9,7 @@ struct sys_timer_ops {
9 int (*init)(void); 9 int (*init)(void);
10 int (*start)(void); 10 int (*start)(void);
11 int (*stop)(void); 11 int (*stop)(void);
12#ifndef CONFIG_GENERIC_TIME 12#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
13 unsigned long (*get_offset)(void); 13 unsigned long (*get_offset)(void);
14#endif 14#endif
15}; 15};
@@ -26,7 +26,7 @@ struct sys_timer {
26extern struct sys_timer tmu_timer, mtu2_timer; 26extern struct sys_timer tmu_timer, mtu2_timer;
27extern struct sys_timer *sys_timer; 27extern struct sys_timer *sys_timer;
28 28
29#ifndef CONFIG_GENERIC_TIME 29#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
30static inline unsigned long get_timer_offset(void) 30static inline unsigned long get_timer_offset(void)
31{ 31{
32 return sys_timer->ops->get_offset(); 32 return sys_timer->ops->get_offset();