]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa4b6be315896ecdfaec97b0d88e4d16eb9aea58
tree911c21789551a3aa19f18da0a0d2b5b1785fcd48
parentcb966f70595edcc0eeeed3e32ae7ca005cbbf434
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