aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sgi-ip27
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2006-11-11 10:10:28 -0500
committerRalf Baechle <ralf@linux-mips.org>2006-11-29 20:14:49 -0500
commit005985609ff72df3257fde6b29aa9d71342c2a6b (patch)
tree1cf86359ccd44f2b5fbb88f13059b18bafd505fd /arch/mips/sgi-ip27
parent187933f23679c413706030aefad9e85e79164c44 (diff)
[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>
Diffstat (limited to 'arch/mips/sgi-ip27')
-rw-r--r--arch/mips/sgi-ip27/ip27-timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/sgi-ip27/ip27-timer.c b/arch/mips/sgi-ip27/ip27-timer.c
index e5441c3a0b07..7d361726bbfb 100644
--- a/arch/mips/sgi-ip27/ip27-timer.c
+++ b/arch/mips/sgi-ip27/ip27-timer.c
@@ -223,14 +223,14 @@ void __init plat_timer_setup(struct irqaction *irq)
223 setup_irq(irqno, &rt_irqaction); 223 setup_irq(irqno, &rt_irqaction);
224} 224}
225 225
226static unsigned int ip27_hpt_read(void) 226static cycle_t ip27_hpt_read(void)
227{ 227{
228 return REMOTE_HUB_L(cputonasid(0), PI_RT_COUNT); 228 return REMOTE_HUB_L(cputonasid(0), PI_RT_COUNT);
229} 229}
230 230
231void __init ip27_time_init(void) 231void __init ip27_time_init(void)
232{ 232{
233 mips_hpt_read = ip27_hpt_read; 233 clocksource_mips.read = ip27_hpt_read;
234 mips_hpt_frequency = CYCLES_PER_SEC; 234 mips_hpt_frequency = CYCLES_PER_SEC;
235 xtime.tv_sec = get_m48t35_time(); 235 xtime.tv_sec = get_m48t35_time();
236 xtime.tv_nsec = 0; 236 xtime.tv_nsec = 0;