From 93c846f9047f392fc2335668a5234edfbddb7cdc Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 19 Oct 2007 08:13:08 +0100 Subject: [MIPS] time: Helpers to compute clocksource/event shift and mult values. Signed-off-by: Ralf Baechle --- include/asm-mips/time.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 @@ #include #include #include +#include #include 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 */ -- cgit v1.2.3 From 1d9ef3ecd7fa2ca28064f03614f37409100c0527 Mon Sep 17 00:00:00 2001 From: Atsushi Nemoto Date: Sat, 20 Oct 2007 01:26:25 +0900 Subject: [MIPS] Kill duplicated setup_irq() for cp0 timer Also many plat_timer_setup() can be killed too. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- include/asm-mips/sni.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') diff --git a/include/asm-mips/sni.h b/include/asm-mips/sni.h index 4d43dbb7f8b..af081457f84 100644 --- a/include/asm-mips/sni.h +++ b/include/asm-mips/sni.h @@ -141,8 +141,6 @@ extern unsigned int sni_brd_type; #define A20R_PT_TIM0_ACK 0xbc050000 #define A20R_PT_TIM1_ACK 0xbc060000 -#define SNI_MIPS_IRQ_CPU_TIMER (MIPS_CPU_IRQ_BASE+7) - #define SNI_A20R_IRQ_BASE MIPS_CPU_IRQ_BASE #define SNI_A20R_IRQ_TIMER (SNI_A20R_IRQ_BASE+5) -- cgit v1.2.3