diff options
Diffstat (limited to 'arch/openrisc/kernel/time.c')
-rw-r--r-- | arch/openrisc/kernel/time.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/openrisc/kernel/time.c b/arch/openrisc/kernel/time.c index bd946ef1623d..7c52e9494a8d 100644 --- a/arch/openrisc/kernel/time.c +++ b/arch/openrisc/kernel/time.c | |||
@@ -125,16 +125,13 @@ irqreturn_t __irq_entry timer_interrupt(struct pt_regs *regs) | |||
125 | 125 | ||
126 | static __init void openrisc_clockevent_init(void) | 126 | static __init void openrisc_clockevent_init(void) |
127 | { | 127 | { |
128 | clockevents_calc_mult_shift(&clockevent_openrisc_timer, | 128 | clockevent_openrisc_timer.cpumask = cpumask_of(0); |
129 | cpuinfo.clock_frequency, 4); | ||
130 | 129 | ||
131 | /* We only have 28 bits */ | 130 | /* We only have 28 bits */ |
132 | clockevent_openrisc_timer.max_delta_ns = | 131 | clockevents_config_and_register(&clockevent_openrisc_timer, |
133 | clockevent_delta2ns((u32) 0x0fffffff, &clockevent_openrisc_timer); | 132 | cpuinfo.clock_frequency, |
134 | clockevent_openrisc_timer.min_delta_ns = | 133 | 100, 0x0fffffff); |
135 | clockevent_delta2ns(1, &clockevent_openrisc_timer); | 134 | |
136 | clockevent_openrisc_timer.cpumask = cpumask_of(0); | ||
137 | clockevents_register_device(&clockevent_openrisc_timer); | ||
138 | } | 135 | } |
139 | 136 | ||
140 | /** | 137 | /** |