clocksource/drivers/sun5i: Refactor the current code
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 31 Mar 2015 10:12:25 +0000 (12:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 31 Mar 2015 15:53:58 +0000 (17:53 +0200)
commit4a59058f0b09682200c04b1db236b4a3b92128d7
tree8bdfcb34da43fda402fb00f050c5aa49a8fa9edc
parenta45860d0ba433c217d359fa2cc2a4984d18ce263
clocksource/drivers/sun5i: Refactor the current code

Refactor the code in order to remove the global variables and
split the clock source and clock events registration in order to
ease the addition of the clock notifiers needed to handle the
parent clock rate changes.

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-4-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/clocksource/timer-sun5i.c