]> Pileus Git - ~andy/linux/commitdiff
clocksource: sun4i: Change CPU mask to cpu_possible_mask
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 25 Oct 2013 11:16:11 +0000 (12:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 11 Dec 2013 10:07:30 +0000 (11:07 +0100)
The interrupt for the timer is a shared processor interrupt, so any CPU
found in the system can handle it. Switch to our cpumask to
cpu_possible_mask instead of cpumask_of(0).

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clocksource/sun4i_timer.c

index a7f492e0c7fcd38c9a1c87084729cdf164e7c716..6a76b4ec3470169860c71a157e9681a53fb2e7c5 100644 (file)
@@ -187,7 +187,7 @@ static void __init sun4i_timer_init(struct device_node *node)
        val = readl(timer_base + TIMER_IRQ_EN_REG);
        writel(val | TIMER_IRQ_EN(0), timer_base + TIMER_IRQ_EN_REG);
 
-       sun4i_clockevent.cpumask = cpumask_of(0);
+       sun4i_clockevent.cpumask = cpu_possible_mask;
        sun4i_clockevent.irq = irq;
 
        clockevents_config_and_register(&sun4i_clockevent, rate,