diff options
author | Noam Camus <noamc@ezchip.com> | 2016-01-14 09:50:08 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-05-09 07:02:29 +0300 |
commit | 69fbd09874ded099d445271d05681529dac4d00a (patch) | |
tree | 955cbb63501600a628ebcac8a4c618fad41b46c1 /arch/arc/kernel/time.c | |
parent | eec3c58efa271d7dfa30c978dda2c88280212634 (diff) | |
download | linux-69fbd09874ded099d445271d05681529dac4d00a.tar.xz |
ARC: clockevent: Prepare for DT based probe
- call clocksource_probe()
- This in turns needs of_clk_init() to be called earlier
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Noam Camus <noamc@ezchip.com>
[vgupta: broken off from a bigger patch]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/time.c')
-rw-r--r-- | arch/arc/kernel/time.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arc/kernel/time.c b/arch/arc/kernel/time.c index e97be743d47b..848353a27ac8 100644 --- a/arch/arc/kernel/time.c +++ b/arch/arc/kernel/time.c @@ -34,6 +34,8 @@ #include <linux/kernel.h> #include <linux/time.h> #include <linux/init.h> +#include <linux/clk.h> +#include <linux/clk-provider.h> #include <linux/clocksource.h> #include <linux/clockchips.h> #include <linux/cpu.h> @@ -301,6 +303,9 @@ static void __init arc_clockevent_setup(void) */ void __init time_init(void) { + of_clk_init(NULL); + clocksource_probe(); + /* * sets up the timekeeping free-flowing counter which also returns * whether the counter is usable as clocksource |