Skip to content

Commit

Permalink
MIPS: SMTC: Fix xxx_clockevent_init() naming conflict for SMTC
Browse files Browse the repository at this point in the history
Commit 779e7d4 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>
  • Loading branch information
Kevin D. Kissell authored and Ralf Baechle committed May 14, 2009
1 parent c34e6e8 commit bcf1180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion arch/mips/include/asm/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/cevt-smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
}


int __cpuinit mips_clockevent_init(void)
int __cpuinit smtc_clockevent_init(void)
{
uint64_t mips_freq = mips_hpt_frequency;
unsigned int cpu = smp_processor_id();
Expand Down

0 comments on commit bcf1180

Please sign in to comment.