diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/time.h | 6 | ||||
-rw-r--r-- | arch/mips/kernel/cevt-smtc.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h index 38a30d2ee959..e46f23f54a50 100644 --- a/arch/mips/include/asm/time.h +++ b/arch/mips/include/asm/time.h | |||
@@ -57,7 +57,11 @@ extern int r4k_clockevent_init(void); | |||
57 | 57 | ||
58 | static inline int mips_clockevent_init(void) | 58 | static inline int mips_clockevent_init(void) |
59 | { | 59 | { |
60 | #ifdef CONFIG_CEVT_R4K | 60 | #ifdef CONFIG_MIPS_MT_SMTC |
61 | extern int smtc_clockevent_init(void); | ||
62 | |||
63 | return smtc_clockevent_init(); | ||
64 | #elif CONFIG_CEVT_R4K | ||
61 | return r4k_clockevent_init(); | 65 | return r4k_clockevent_init(); |
62 | #else | 66 | #else |
63 | return -ENXIO; | 67 | return -ENXIO; |
diff --git a/arch/mips/kernel/cevt-smtc.c b/arch/mips/kernel/cevt-smtc.c index 6d45e24db5bf..df6f5bc60572 100644 --- a/arch/mips/kernel/cevt-smtc.c +++ b/arch/mips/kernel/cevt-smtc.c | |||
@@ -245,7 +245,7 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id) | |||
245 | } | 245 | } |
246 | 246 | ||
247 | 247 | ||
248 | int __cpuinit mips_clockevent_init(void) | 248 | int __cpuinit smtc_clockevent_init(void) |
249 | { | 249 | { |
250 | uint64_t mips_freq = mips_hpt_frequency; | 250 | uint64_t mips_freq = mips_hpt_frequency; |
251 | unsigned int cpu = smp_processor_id(); | 251 | unsigned int cpu = smp_processor_id(); |