mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
ARC: time: move time_init() out of the driver
to allow future git mv of the driver into drivers/clocksource Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
044214200b
commit
92b0331403
2 changed files with 11 additions and 9 deletions
|
@ -10,6 +10,8 @@
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/root_dev.h>
|
#include <linux/root_dev.h>
|
||||||
|
#include <linux/clk-provider.h>
|
||||||
|
#include <linux/clocksource.h>
|
||||||
#include <linux/console.h>
|
#include <linux/console.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/cpu.h>
|
#include <linux/cpu.h>
|
||||||
|
@ -449,6 +451,15 @@ void __init setup_arch(char **cmdline_p)
|
||||||
arc_unwind_init();
|
arc_unwind_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Called from start_kernel() - boot CPU only
|
||||||
|
*/
|
||||||
|
void __init time_init(void)
|
||||||
|
{
|
||||||
|
of_clk_init(NULL);
|
||||||
|
clocksource_probe();
|
||||||
|
}
|
||||||
|
|
||||||
static int __init customize_machine(void)
|
static int __init customize_machine(void)
|
||||||
{
|
{
|
||||||
if (machine_desc->init_machine)
|
if (machine_desc->init_machine)
|
||||||
|
|
|
@ -361,12 +361,3 @@ static int __init arc_of_timer_init(struct device_node *np)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
CLOCKSOURCE_OF_DECLARE(arc_clkevt, "snps,arc-timer", arc_of_timer_init);
|
CLOCKSOURCE_OF_DECLARE(arc_clkevt, "snps,arc-timer", arc_of_timer_init);
|
||||||
|
|
||||||
/*
|
|
||||||
* Called from start_kernel() - boot CPU only
|
|
||||||
*/
|
|
||||||
void __init time_init(void)
|
|
||||||
{
|
|
||||||
of_clk_init(NULL);
|
|
||||||
clocksource_probe();
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue