diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-11-24 17:33:28 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-11-26 12:26:14 -0500 |
commit | 940f6b48a130e0a33cb8bd397dd0e277166470ad (patch) | |
tree | 03bd36fcb9b5c8d77f5de2930ff32d770f5cdf4e /include/asm-mips | |
parent | 5aa85c9fc49a6ce44dc10a42e2011bbde9dc445a (diff) |
[MIPS] Only build r4k clocksource for systems that work ok with it.
In particular as-is it's not suited for multicore and mutiprocessors
systems where there is on guarantee that the counter are synchronized
or running from the same clock at all. This broke Sibyte and probably
others since the "[MIPS] Handle R4000/R4400 mfc0 from count register."
commit.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/time.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-mips/time.h b/include/asm-mips/time.h index 1922494a0d9e..7717934f94c3 100644 --- a/include/asm-mips/time.h +++ b/include/asm-mips/time.h | |||
@@ -67,6 +67,17 @@ static inline int mips_clockevent_init(void) | |||
67 | } | 67 | } |
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | /* | ||
71 | * Initialize the count register as a clocksource | ||
72 | */ | ||
73 | #ifdef CONFIG_CEVT_R4K | ||
74 | extern void init_mips_clocksource(void); | ||
75 | #else | ||
76 | static inline void init_mips_clocksource(void) | ||
77 | { | ||
78 | } | ||
79 | #endif | ||
80 | |||
70 | extern void clocksource_set_clock(struct clocksource *cs, unsigned int clock); | 81 | extern void clocksource_set_clock(struct clocksource *cs, unsigned int clock); |
71 | extern void clockevent_set_clock(struct clock_event_device *cd, | 82 | extern void clockevent_set_clock(struct clock_event_device *cd, |
72 | unsigned int clock); | 83 | unsigned int clock); |