clocksource/drivers/h8300_timer8: Retrieve the clock rate at init time
commitcce483e0ee70c2c9c6ff08e502b6f0bba3e15f62
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 8 Nov 2015 22:24:28 +0000 (8 23:24 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:42:20 +0000 (15 09:42 +0100)
tree48e85cacbc4bea214cf2fb817793a8d176e4cb96
parent254d8b5d59516d670111e0ac14d53fed4d61118d
clocksource/drivers/h8300_timer8: Retrieve the clock rate at init time

The current code retrieves the rate value when the timer is enabled which
occurs each time a timer is re-armed. Except if the clock frequency has changed
magically I don't see why this should be done each time.

Retrieve the clock rate value at init time only.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/h8300_timer8.c