]> err.no Git - linux-2.6/blobdiff - include/asm-mips/time.h
[Blackfin] arch: Initial checkin of the memory protection support.
[linux-2.6] / include / asm-mips / time.h
index ee1663e64da1aad67162a469c690a605de5e45e7..7717934f94c35122ba55e9a4830cbc91c1bcf216 100644 (file)
@@ -58,10 +58,22 @@ extern int (*perf_irq)(void);
  * Initialize the calling CPU's compare interrupt as clockevent device
  */
 #ifdef CONFIG_CEVT_R4K
-extern void mips_clockevent_init(void);
+extern int mips_clockevent_init(void);
 extern unsigned int __weak get_c0_compare_int(void);
 #else
-static inline void mips_clockevent_init(void)
+static inline int mips_clockevent_init(void)
+{
+       return -ENXIO;
+}
+#endif
+
+/*
+ * Initialize the count register as a clocksource
+ */
+#ifdef CONFIG_CEVT_R4K
+extern void init_mips_clocksource(void);
+#else
+static inline void init_mips_clocksource(void)
 {
 }
 #endif