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

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/vf-pit: Pass the cpu number as parameter

In order to initialize the timer with a cpumask tied to a cpu, let's
pass it as a parameter instead of hardwiring it in the init function.

No functional changes intended.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-6-daniel.lezcano@linaro.org

+3 -3
+3 -3
drivers/clocksource/timer-vf-pit.c
··· 147 147 } 148 148 149 149 static int __init pit_clockevent_init(struct pit_timer *pit, void __iomem *base, 150 - unsigned long rate, int irq) 150 + unsigned long rate, int irq, unsigned int cpu) 151 151 { 152 152 /* 153 153 * The channels 0 and 1 can be chained to build a 64-bit ··· 163 163 BUG_ON(request_irq(irq, pit_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL, 164 164 "VF pit timer", &pit->ced)); 165 165 166 - pit->ced.cpumask = cpumask_of(0); 166 + pit->ced.cpumask = cpumask_of(cpu); 167 167 pit->ced.irq = irq; 168 168 169 169 pit->ced.name = "VF pit timer"; ··· 221 221 if (ret) 222 222 return ret; 223 223 224 - return pit_clockevent_init(&pit_timer, timer_base, clk_rate, irq); 224 + return pit_clockevent_init(&pit_timer, timer_base, clk_rate, irq, 0); 225 225 } 226 226 TIMER_OF_DECLARE(vf610, "fsl,vf610-pit", pit_timer_init);