aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mn10300/include')
-rw-r--r--arch/mn10300/include/asm/timex.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/mn10300/include/asm/timex.h b/arch/mn10300/include/asm/timex.h
index ce5719a2ce7c..bd4e90dfe6c2 100644
--- a/arch/mn10300/include/asm/timex.h
+++ b/arch/mn10300/include/asm/timex.h
@@ -18,15 +18,28 @@
18 18
19#define CLOCK_TICK_RATE MN10300_JCCLK /* Underlying HZ */ 19#define CLOCK_TICK_RATE MN10300_JCCLK /* Underlying HZ */
20 20
21extern cycles_t cacheflush_time;
22
23#ifdef __KERNEL__ 21#ifdef __KERNEL__
24 22
23extern cycles_t cacheflush_time;
24
25static inline cycles_t get_cycles(void) 25static inline cycles_t get_cycles(void)
26{ 26{
27 return read_timestamp_counter(); 27 return read_timestamp_counter();
28} 28}
29 29
30extern int init_clockevents(void);
31extern int init_clocksource(void);
32
33static inline void setup_jiffies_interrupt(int irq,
34 struct irqaction *action)
35{
36 u16 tmp;
37 setup_irq(irq, action);
38 set_intr_level(irq, NUM2GxICR_LEVEL(CONFIG_TIMER_IRQ_LEVEL));
39 GxICR(irq) |= GxICR_ENABLE | GxICR_DETECT | GxICR_REQUEST;
40 tmp = GxICR(irq);
41}
42
30#endif /* __KERNEL__ */ 43#endif /* __KERNEL__ */
31 44
32#endif /* _ASM_TIMEX_H */ 45#endif /* _ASM_TIMEX_H */