ARM: at91: rm9200: switch back to clockevents_config_and_register
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 8 Oct 2013 14:38:53 +0000 (16:38 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 20 Nov 2013 20:55:20 +0000 (21:55 +0100)
commit1c283531115bda77a9b559271311c1983fbcffaa
tree6308373b50a5fe9554ff9652e6e6c15f8eae7e7e
parent050ded1bbaea3331745cf2782315f5bc2582d083
ARM: at91: rm9200: switch back to clockevents_config_and_register

The timer code for at91rm9200 was already converted some time ago by
Shawn Guo in commit 838a2ae (ARM: use clockevents_config_and_register()
where possible) but because of a rounding issue in the timer core this
resulted in an easily reproducible oops. So it was reverted (commit
b7a8ca5 (ARM: at91: rm9200 fix time support)) which stopped the oops
from happening because min_delta_ns is increased by one in arch code
which stopped from problem from happening.

Now that the timer core problem is fixed (commit a4578ea (clockevents:
Sanitize ticks to nsec conversion)), we can switch back to the
clockevents_config_and_register helper.

Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/arm/mach-at91/at91rm9200_time.c