aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-malta/malta-time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mti-malta/malta-time.c')
-rw-r--r--arch/mips/mti-malta/malta-time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c
index 115f5bc06003..8607b0dd29f6 100644
--- a/arch/mips/mti-malta/malta-time.c
+++ b/arch/mips/mti-malta/malta-time.c
@@ -95,7 +95,7 @@ static unsigned int __init estimate_cpu_frequency(void)
95 (prid != (PRID_COMP_MIPS | PRID_IMP_25KF))) 95 (prid != (PRID_COMP_MIPS | PRID_IMP_25KF)))
96 count *= 2; 96 count *= 2;
97 97
98 count += 5000; /* round */ 98 count += 5000; /* round */
99 count -= count%10000; 99 count -= count%10000;
100 100
101 return count; 101 return count;
@@ -146,15 +146,15 @@ void __init plat_time_init(void)
146{ 146{
147 unsigned int est_freq; 147 unsigned int est_freq;
148 148
149 /* Set Data mode - binary. */ 149 /* Set Data mode - binary. */
150 CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); 150 CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL);
151 151
152 est_freq = estimate_cpu_frequency(); 152 est_freq = estimate_cpu_frequency();
153 153
154 printk("CPU frequency %d.%02d MHz\n", est_freq/1000000, 154 printk("CPU frequency %d.%02d MHz\n", est_freq/1000000,
155 (est_freq%1000000)*100/1000000); 155 (est_freq%1000000)*100/1000000);
156 156
157 cpu_khz = est_freq / 1000; 157 cpu_khz = est_freq / 1000;
158 158
159 mips_scroll_message(); 159 mips_scroll_message();
160#ifdef CONFIG_I8253 /* Only Malta has a PIT */ 160#ifdef CONFIG_I8253 /* Only Malta has a PIT */