[MIPS] mips HPT cleanup: make clocksource_mips public
Make clocksource_mips public and get rid of mips_hpt_read, mips_hpt_mask. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
187933f236
commit
005985609f
@ -151,7 +151,7 @@ static void dec_timer_ack(void)
|
||||
CMOS_READ(RTC_REG_C); /* Ack the RTC interrupt. */
|
||||
}
|
||||
|
||||
static unsigned int dec_ioasic_hpt_read(void)
|
||||
static cycle_t dec_ioasic_hpt_read(void)
|
||||
{
|
||||
/*
|
||||
* The free-running counter is 32-bit which is good for about
|
||||
@ -171,7 +171,7 @@ void __init dec_time_init(void)
|
||||
|
||||
if (!cpu_has_counter && IOASIC)
|
||||
/* For pre-R4k systems we use the I/O ASIC's counter. */
|
||||
mips_hpt_read = dec_ioasic_hpt_read;
|
||||
clocksource_mips.read = dec_ioasic_hpt_read;
|
||||
|
||||
/* Set up the rate of periodic DS1287 interrupts. */
|
||||
CMOS_WRITE(RTC_REF_CLCK_32KHZ | (16 - __ffs(HZ)), RTC_REG_A);
|
||||
|
Reference in New Issue
Block a user