clocksource/drivers/sun5i: Add clock notifiers
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 31 Mar 2015 10:12:26 +0000 (12:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 31 Mar 2015 15:53:58 +0000 (17:53 +0200)
commit3071efa466b30636bf958f3d13bc808e03105cd8
tree911c21789551a3aa19f18da0a0d2b5b1785fcd48
parent4a59058f0b09682200c04b1db236b4a3b92128d7
clocksource/drivers/sun5i: Add clock notifiers

The parent clock of the sun5i timer is the AHB clock, which rate
might change because of other devices requirements.

This is for example the case on the Allwinner A31, where the DMA
controller needs a minimum rate higher than the default, that is
enforced after the timer driver has probed.

Add clock notifiers to make sure we reflect the clock rate
changes in the timer rates.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1427796746-373-5-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/clocksource/timer-sun5i.c