From 15aff457277efdc8cc7d7cb51f20be8ac3c9d750 Mon Sep 17 00:00:00 2001 From: Jingchang Lu Date: Wed, 26 Nov 2014 17:07:11 +0800 Subject: arm: ls1021a: utilizing hrtimer based broadcast This add utilization on hrtimer based broadcast instead the periodic tick broadcast to provide high resolution clock in SMP. Signed-off-by: Jingchang Lu Change-Id: I391bf06fa4b238ab49bced26e3be8c2b6c677c32 Reviewed-on: http://git.am.freescale.net:8181/30436 Tested-by: Review Code-CDREVIEW Reviewed-by: Yangbo Lu Reviewed-by: Zhengxiong Jin diff --git a/arch/arm/mach-imx/mach-ls1021a.c b/arch/arm/mach-imx/mach-ls1021a.c index 3895ffc..3692dd0 100644 --- a/arch/arm/mach-imx/mach-ls1021a.c +++ b/arch/arm/mach-imx/mach-ls1021a.c @@ -7,6 +7,9 @@ * (at your option) any later version. */ +#include +#include +#include #include #include @@ -18,6 +21,13 @@ static void __init ls1021a_init_machine(void) of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } +static void __init ls1021a_init_time(void) +{ + of_clk_init(NULL); + clocksource_of_init(); + tick_setup_hrtimer_broadcast(); +} + static const char *ls1021a_dt_compat[] __initdata = { "fsl,ls1021a", NULL, @@ -25,6 +35,7 @@ static const char *ls1021a_dt_compat[] __initdata = { DT_MACHINE_START(LS1021A, "Freescale LS1021A") .smp = smp_ops(ls1021a_smp_ops), + .init_time = ls1021a_init_time, .init_machine = ls1021a_init_machine, .dt_compat = ls1021a_dt_compat, .restart = mxc_restart, -- cgit v0.10.2