aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/timer.h')
-rw-r--r--include/asm-sh/timer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sh/timer.h b/include/asm-sh/timer.h
index c7ab28095ba0..ebc78db1a9ea 100644
--- a/include/asm-sh/timer.h
+++ b/include/asm-sh/timer.h
@@ -8,7 +8,9 @@ struct sys_timer_ops {
8 int (*init)(void); 8 int (*init)(void);
9 int (*start)(void); 9 int (*start)(void);
10 int (*stop)(void); 10 int (*stop)(void);
11#ifndef CONFIG_GENERIC_TIME
11 unsigned long (*get_offset)(void); 12 unsigned long (*get_offset)(void);
13#endif
12 unsigned long (*get_frequency)(void); 14 unsigned long (*get_frequency)(void);
13}; 15};
14 16
@@ -24,10 +26,12 @@ struct sys_timer {
24extern struct sys_timer tmu_timer; 26extern struct sys_timer tmu_timer;
25extern struct sys_timer *sys_timer; 27extern struct sys_timer *sys_timer;
26 28
29#ifndef CONFIG_GENERIC_TIME
27static inline unsigned long get_timer_offset(void) 30static inline unsigned long get_timer_offset(void)
28{ 31{
29 return sys_timer->ops->get_offset(); 32 return sys_timer->ops->get_offset();
30} 33}
34#endif
31 35
32static inline unsigned long get_timer_frequency(void) 36static inline unsigned long get_timer_frequency(void)
33{ 37{