From: Ingo Molnar Date: Sun, 12 Jan 2014 16:28:52 +0000 (+0100) Subject: Merge branch 'clockevents/3.14' of git://git.linaro.org/people/daniel.lezcano/linux... X-Git-Tag: upstream/snapshot3+hdmi~3647^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b3f82876006bd4172ca7696aa367baf96ec7c15;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Merge branch 'clockevents/3.14' of git://git.linaro.org/people/daniel.lezcano/linux into timers/core Pull clocksource/clockevent updates from Daniel Lezcano: * Axel Lin removed an unused structure defining the ids for the bcm kona driver. * Ezequiel Garcia enabled the timer divider only when the 25MHz timer is not used for the armada 370 XP. * Jingoo Han removed a pointless platform data initialization for the sh_mtu and sh_mtu2. * Laurent Pinchart added the clk_prepare/clk_unprepare for sh_cmt. * Linus Walleij added a useful warning in clk_of when no clocks are found while the old behavior was to silently hang at boot time. * Maxime Ripard added the high speed timer drivers for the Allwinner SoCs (A10, A13, A20). He increased the rating, shared the irq across all available cpus and fixed the clockevent's irq initialization for the sun4i. * Michael Opdenacker removed the usage of the IRQF_DISABLED for the all the timers driver located in drivers/clocksource. * Stephen Boyd switched to sched_clock_register for the arm_global_timer, cadence_ttc, sun4i and orion timers. Conflicts: drivers/clocksource/clksrc-of.c Signed-off-by: Ingo Molnar --- 1b3f82876006bd4172ca7696aa367baf96ec7c15 diff --cc drivers/clocksource/clksrc-of.c index b9ddd9e,a30b42c..ae2e427 --- a/drivers/clocksource/clksrc-of.c +++ b/drivers/clocksource/clksrc-of.c @@@ -35,5 -36,9 +36,8 @@@ void __init clocksource_of_init(void init_func = match->data; init_func(np); - of_node_put(np); + clocksources++; } + if (!clocksources) + pr_crit("%s: no matching clocksources found\n", __func__); } diff --cc drivers/clocksource/time-armada-370-xp.c index 4e7f680,0450f6b..ee8691b --- a/drivers/clocksource/time-armada-370-xp.c +++ b/drivers/clocksource/time-armada-370-xp.c @@@ -262,14 -268,8 +263,13 @@@ static void __init armada_370_xp_timer_ writel(0xffffffff, timer_base + TIMER0_VAL_OFF); writel(0xffffffff, timer_base + TIMER0_RELOAD_OFF); - timer_ctrl_clrset(0, TIMER0_EN | TIMER0_RELOAD_EN | - TIMER0_DIV(TIMER_DIVIDER_SHIFT)); + timer_ctrl_clrset(0, TIMER0_RELOAD_EN | enable_mask); + /* + * Set scale and timer for sched_clock. + */ + sched_clock_register(armada_370_xp_read_sched_clock, 32, timer_clk); + clocksource_mmio_init(timer_base + TIMER0_VAL_OFF, "armada_370_xp_clocksource", timer_clk, 300, 32, clocksource_mmio_readl_down);