diff options
Diffstat (limited to 'arch/mips/kernel/cevt-r4k.c')
-rw-r--r-- | arch/mips/kernel/cevt-r4k.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c index 0b2450ceb13f..2a4d50ff5e2c 100644 --- a/arch/mips/kernel/cevt-r4k.c +++ b/arch/mips/kernel/cevt-r4k.c | |||
@@ -163,7 +163,6 @@ int c0_compare_int_usable(void) | |||
163 | 163 | ||
164 | int __cpuinit r4k_clockevent_init(void) | 164 | int __cpuinit r4k_clockevent_init(void) |
165 | { | 165 | { |
166 | uint64_t mips_freq = mips_hpt_frequency; | ||
167 | unsigned int cpu = smp_processor_id(); | 166 | unsigned int cpu = smp_processor_id(); |
168 | struct clock_event_device *cd; | 167 | struct clock_event_device *cd; |
169 | unsigned int irq; | 168 | unsigned int irq; |
@@ -188,9 +187,9 @@ int __cpuinit r4k_clockevent_init(void) | |||
188 | cd->name = "MIPS"; | 187 | cd->name = "MIPS"; |
189 | cd->features = CLOCK_EVT_FEAT_ONESHOT; | 188 | cd->features = CLOCK_EVT_FEAT_ONESHOT; |
190 | 189 | ||
190 | clockevent_set_clock(cd, mips_hpt_frequency); | ||
191 | |||
191 | /* Calculate the min / max delta */ | 192 | /* Calculate the min / max delta */ |
192 | cd->mult = div_sc((unsigned long) mips_freq, NSEC_PER_SEC, 32); | ||
193 | cd->shift = 32; | ||
194 | cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); | 193 | cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); |
195 | cd->min_delta_ns = clockevent_delta2ns(0x300, cd); | 194 | cd->min_delta_ns = clockevent_delta2ns(0x300, cd); |
196 | 195 | ||