1 From abc12cd5c39556824cc9022db6eddc64e8e8dbe9 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Wed, 23 Oct 2013 17:54:39 +0100
4 Subject: [PATCH] clockevent: sun4i: Fill the irq field in the clockevent
7 The clock event structure irq field was not filled previously to the
10 This was resulting in the timer not being used at all when using a
11 configuration with SMP enabled on a system with several CPUs, and with
12 the cpumask set to the cpu_possible_mask.
14 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
16 drivers/clocksource/sun4i_timer.c | 1 +
17 1 file changed, 1 insertion(+)
19 --- a/drivers/clocksource/sun4i_timer.c
20 +++ b/drivers/clocksource/sun4i_timer.c
21 @@ -191,6 +191,7 @@ static void __init sun4i_timer_init(stru
22 writel(val | TIMER_IRQ_EN(0), timer_base + TIMER_IRQ_EN_REG);
24 sun4i_clockevent.cpumask = cpumask_of(0);
25 + sun4i_clockevent.irq = irq;
27 clockevents_config_and_register(&sun4i_clockevent, rate,
28 TIMER_SYNC_TICKS, 0xffffffff);