patch-2.4.25 linux-2.4.25/arch/mips/ite-boards/generic/time.c

Next file: linux-2.4.25/arch/mips/jazz/jazzdma.c
Previous file: linux-2.4.25/arch/mips/ite-boards/generic/it8172_setup.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/mips/ite-boards/generic/time.c linux-2.4.25/arch/mips/ite-boards/generic/time.c
@@ -114,7 +114,7 @@
 
 static unsigned long r4k_offset; /* Amount to increment compare reg each time */
 static unsigned long r4k_cur;    /* What counter should be at next timer irq */
-extern unsigned int mips_counter_frequency;
+extern unsigned int mips_hpt_frequency;
 
 /*
  * Figure out the r4k offset, the amount to increment the compare
@@ -138,12 +138,12 @@
 	while (CMOS_READ(RTC_REG_A) & RTC_UIP);
 	while (!(CMOS_READ(RTC_REG_A) & RTC_UIP));
 
-	mips_counter_frequency = read_c0_count();
+	mips_hpt_frequency = read_c0_count();
 
 	/* restore interrupts */
 	local_irq_restore(flags);
 
-	return (mips_counter_frequency / HZ);
+	return (mips_hpt_frequency / HZ);
 }
 
 static unsigned long 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)