diff options
Diffstat (limited to 'include/asm-sh/timer.h')
-rw-r--r-- | include/asm-sh/timer.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/asm-sh/timer.h b/include/asm-sh/timer.h index c7ab28095ba0..5df842bcf7b6 100644 --- a/include/asm-sh/timer.h +++ b/include/asm-sh/timer.h | |||
@@ -8,8 +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); |
12 | unsigned long (*get_frequency)(void); | 13 | #endif |
13 | }; | 14 | }; |
14 | 15 | ||
15 | struct sys_timer { | 16 | struct sys_timer { |
@@ -24,21 +25,17 @@ struct sys_timer { | |||
24 | extern struct sys_timer tmu_timer; | 25 | extern struct sys_timer tmu_timer; |
25 | extern struct sys_timer *sys_timer; | 26 | extern struct sys_timer *sys_timer; |
26 | 27 | ||
28 | #ifndef CONFIG_GENERIC_TIME | ||
27 | static inline unsigned long get_timer_offset(void) | 29 | static inline unsigned long get_timer_offset(void) |
28 | { | 30 | { |
29 | return sys_timer->ops->get_offset(); | 31 | return sys_timer->ops->get_offset(); |
30 | } | 32 | } |
31 | 33 | #endif | |
32 | static inline unsigned long get_timer_frequency(void) | ||
33 | { | ||
34 | return sys_timer->ops->get_frequency(); | ||
35 | } | ||
36 | 34 | ||
37 | /* arch/sh/kernel/timers/timer.c */ | 35 | /* arch/sh/kernel/timers/timer.c */ |
38 | struct sys_timer *get_sys_timer(void); | 36 | struct sys_timer *get_sys_timer(void); |
39 | 37 | ||
40 | /* arch/sh/kernel/time.c */ | 38 | /* arch/sh/kernel/time.c */ |
41 | void handle_timer_tick(struct pt_regs *); | 39 | void handle_timer_tick(void); |
42 | 40 | ||
43 | #endif /* __ASM_SH_TIMER_H */ | 41 | #endif /* __ASM_SH_TIMER_H */ |
44 | |||