patch-2.2.4 linux/arch/ppc/kernel/chrp_time.c
Next file: linux/arch/ppc/kernel/feature.c
Previous file: linux/arch/ppc/kernel/chrp_setup.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Mar 19 10:50:03 1999
- Orig file:
v2.2.3/linux/arch/ppc/kernel/chrp_time.c
- Orig date:
Fri May 8 23:14:44 1998
diff -u --recursive --new-file v2.2.3/linux/arch/ppc/kernel/chrp_time.c linux/arch/ppc/kernel/chrp_time.c
@@ -154,7 +154,8 @@
__initfunc(void chrp_calibrate_decr(void))
{
struct device_node *cpu;
- int freq, *fp, divisor;
+ int *fp, divisor;
+ unsigned long freq;
if (via_calibrate_decr())
return;
@@ -170,10 +171,9 @@
if (fp != 0)
freq = *fp;
}
-
freq *= 60; /* try to make freq/1e6 an integer */
divisor = 60;
- printk("time_init: decrementer frequency = %d/%d\n", freq, divisor);
+ printk("time_init: decrementer frequency = %lu/%d\n", freq, divisor);
decrementer_count = freq / HZ / divisor;
count_period_num = divisor;
count_period_den = freq / 1000000;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)