summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/time.h
diff options
context:
space:
mode:
authorKevin D. Kissell <kevink@paralogos.com>2009-03-31 13:10:32 +0200
committerRalf Baechle <ralf@linux-mips.org>2009-05-14 13:50:24 +0100
commitbcf11801e77946533767bbb368130220e241d824 (patch)
tree60f2c05ae4c11f6fb66831e45b62764089493324 /arch/mips/include/asm/time.h
parentc34e6e8bdd99c746b7844c937c3a2529ef2c4437 (diff)
downloadlwn-bcf11801e77946533767bbb368130220e241d824.tar.gz
lwn-bcf11801e77946533767bbb368130220e241d824.zip
MIPS: SMTC: Fix xxx_clockevent_init() naming conflict for SMTC
Commit 779e7d41ad004946603da139da99ba775f74cb1c created a name collision in SMTC builds. The attached patch corrects this in a a not-too-terribly-ugly manner. Note that the SMTC case has to come first, because CEVT_R4K will also be true. Signed-off-by: Kevin D. Kissell <kevink@paralogos.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/time.h')
-rw-r--r--arch/mips/include/asm/time.h6
1 files changed, 5 insertions, 1 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);
static inline int mips_clockevent_init(void)
{
-#ifdef CONFIG_CEVT_R4K
+#ifdef CONFIG_MIPS_MT_SMTC
+ extern int smtc_clockevent_init(void);
+
+ return smtc_clockevent_init();
+#elif CONFIG_CEVT_R4K
return r4k_clockevent_init();
#else
return -ENXIO;