diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-19 03:13:08 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-19 13:15:57 -0400 |
commit | 93c846f9047f392fc2335668a5234edfbddb7cdc (patch) | |
tree | d52a9915c5c6f4f3c998d76e34606e4bbef7bd8b /include | |
parent | f887b93e17448552eb6761d21277c33177bb904b (diff) |
[MIPS] time: Helpers to compute clocksource/event shift and mult values.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/time.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-mips/time.h b/include/asm-mips/time.h index cf76f4f7435..bc47af313bc 100644 --- a/include/asm-mips/time.h +++ b/include/asm-mips/time.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/ptrace.h> | 21 | #include <linux/ptrace.h> |
22 | #include <linux/rtc.h> | 22 | #include <linux/rtc.h> |
23 | #include <linux/spinlock.h> | 23 | #include <linux/spinlock.h> |
24 | #include <linux/clockchips.h> | ||
24 | #include <linux/clocksource.h> | 25 | #include <linux/clocksource.h> |
25 | 26 | ||
26 | extern spinlock_t rtc_lock; | 27 | extern spinlock_t rtc_lock; |
@@ -83,4 +84,8 @@ static inline void mips_clockevent_init(void) | |||
83 | } | 84 | } |
84 | #endif | 85 | #endif |
85 | 86 | ||
87 | extern void clocksource_set_clock(struct clocksource *cs, unsigned int clock); | ||
88 | extern void clockevent_set_clock(struct clock_event_device *cd, | ||
89 | unsigned int clock); | ||
90 | |||
86 | #endif /* _ASM_TIME_H */ | 91 | #endif /* _ASM_TIME_H */ |