Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource: marco: Fix the affinity set for local timer of CPU1

irqchip will reject the affinity set to CPUs which is not online
yet. but in the CPU1 wakeup stage, OS only sets CPU1 to be online
after local timer is set, so that causes the irq_set_affinity not
work. this patch moves to irq_force_affinity() for the low level
boot stage.

Signed-off-by: Zhiwu Song <Zhiwu.Song@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Zhiwu Song and committed by
Daniel Lezcano
f214be50 84ea7fe3

+1 -1
+1 -1
drivers/clocksource/timer-marco.c
··· 199 199 200 200 action->dev_id = ce; 201 201 BUG_ON(setup_irq(ce->irq, action)); 202 - irq_set_affinity(action->irq, cpumask_of(cpu)); 202 + irq_force_affinity(action->irq, cpumask_of(cpu)); 203 203 204 204 clockevents_register_device(ce); 205 205 return 0;