Commit 69fbd098 authored by Noam Camus's avatar Noam Camus Committed by Vineet Gupta

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: default avatarNoam Camus <noamc@ezchip.com>
[vgupta: broken off from a bigger patch]
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent eec3c58e
...@@ -10,8 +10,9 @@ config ARC ...@@ -10,8 +10,9 @@ config ARC
def_bool y def_bool y
select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC
select BUILDTIME_EXTABLE_SORT select BUILDTIME_EXTABLE_SORT
select COMMON_CLK select CLKSRC_OF
select CLONE_BACKWARDS select CLONE_BACKWARDS
select COMMON_CLK
select GENERIC_ATOMIC64 select GENERIC_ATOMIC64
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select GENERIC_FIND_FIRST_BIT select GENERIC_FIND_FIRST_BIT
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <linux/console.h> #include <linux/console.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/clk-provider.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/cache.h> #include <linux/cache.h>
...@@ -444,7 +443,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -444,7 +443,6 @@ void __init setup_arch(char **cmdline_p)
static int __init customize_machine(void) static int __init customize_machine(void)
{ {
of_clk_init(NULL);
/* /*
* Traverses flattened DeviceTree - registering platform devices * Traverses flattened DeviceTree - registering platform devices
* (if any) complete with their resources * (if any) complete with their resources
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/clockchips.h> #include <linux/clockchips.h>
#include <linux/cpu.h> #include <linux/cpu.h>
...@@ -301,6 +303,9 @@ static void __init arc_clockevent_setup(void) ...@@ -301,6 +303,9 @@ static void __init arc_clockevent_setup(void)
*/ */
void __init time_init(void) void __init time_init(void)
{ {
of_clk_init(NULL);
clocksource_probe();
/* /*
* sets up the timekeeping free-flowing counter which also returns * sets up the timekeeping free-flowing counter which also returns
* whether the counter is usable as clocksource * whether the counter is usable as clocksource
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment