Commit 2199a557 authored by Magnus Damm's avatar Magnus Damm Committed by Daniel Lezcano

clocksource: em_sti: Set cpu_possible_mask to fix SMP broadcast

Update the STI driver by setting cpu_possible_mask to make EMEV2
SMP work as expected together with the ARM broadcast timer.

This breakage was introduced by:

f7db706b ARM: 7674/1: smp: Avoid dummy clockevent being preferred over real hardware clock-event

Without this fix SMP operation is broken on EMEV2 since no
broadcast timer interrupts trigger on the secondary CPU cores.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Tested-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent eeb93d02
...@@ -301,7 +301,7 @@ static void em_sti_register_clockevent(struct em_sti_priv *p) ...@@ -301,7 +301,7 @@ static void em_sti_register_clockevent(struct em_sti_priv *p)
ced->name = dev_name(&p->pdev->dev); ced->name = dev_name(&p->pdev->dev);
ced->features = CLOCK_EVT_FEAT_ONESHOT; ced->features = CLOCK_EVT_FEAT_ONESHOT;
ced->rating = 200; ced->rating = 200;
ced->cpumask = cpumask_of(0); ced->cpumask = cpu_possible_mask;
ced->set_next_event = em_sti_clock_event_next; ced->set_next_event = em_sti_clock_event_next;
ced->set_mode = em_sti_clock_event_mode; ced->set_mode = em_sti_clock_event_mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment