diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-19 09:13:08 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-19 19:15:57 +0200 |
commit | 93c846f9047f392fc2335668a5234edfbddb7cdc (patch) | |
tree | d52a9915c5c6f4f3c998d76e34606e4bbef7bd8b /include/asm-mips/time.h | |
parent | [MIPS] SMTC: Build fix. (diff) | |
download | linux-93c846f9047f392fc2335668a5234edfbddb7cdc.tar.xz linux-93c846f9047f392fc2335668a5234edfbddb7cdc.zip |
[MIPS] time: Helpers to compute clocksource/event shift and mult values.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/time.h')
-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 cf76f4f7435f..bc47af313bcd 100644 --- a/include/asm-mips/time.h +++ b/include/asm-mips/time.h @@ -21,6 +21,7 @@ #include <linux/ptrace.h> #include <linux/rtc.h> #include <linux/spinlock.h> +#include <linux/clockchips.h> #include <linux/clocksource.h> extern spinlock_t rtc_lock; @@ -83,4 +84,8 @@ static inline void mips_clockevent_init(void) } #endif +extern void clocksource_set_clock(struct clocksource *cs, unsigned int clock); +extern void clockevent_set_clock(struct clock_event_device *cd, + unsigned int clock); + #endif /* _ASM_TIME_H */ |