[<prev] [next>] [day] [month] [year] [list]
Message-ID: <175883601427.709179.4816661210666485950.tip-bot2@tip-bot2>
Date: Thu, 25 Sep 2025 21:33:34 -0000
From: "tip-bot2 for Daniel Lezcano" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Daniel Lezcano <daniel.lezcano@...aro.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: timers/clocksource] clocksource/drivers/vf-pit: Pass the cpu
number as parameter
The following commit has been merged into the timers/clocksource branch of tip:
Commit-ID: 995ebf16043392d131bd22ed8484c9c952bfb45f
Gitweb: https://git.kernel.org/tip/995ebf16043392d131bd22ed8484c9c952bfb45f
Author: Daniel Lezcano <daniel.lezcano@...aro.org>
AuthorDate: Mon, 04 Aug 2025 17:23:23 +02:00
Committer: Daniel Lezcano <daniel.lezcano@...aro.org>
CommitterDate: Tue, 23 Sep 2025 12:28:50 +02:00
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@...aro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-6-daniel.lezcano@linaro.org
---
drivers/clocksource/timer-vf-pit.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clocksource/timer-vf-pit.c b/drivers/clocksource/timer-vf-pit.c
index 6a5f940..9f3b72b 100644
--- a/drivers/clocksource/timer-vf-pit.c
+++ b/drivers/clocksource/timer-vf-pit.c
@@ -147,7 +147,7 @@ static irqreturn_t pit_timer_interrupt(int irq, void *dev_id)
}
static int __init pit_clockevent_init(struct pit_timer *pit, void __iomem *base,
- unsigned long rate, int irq)
+ unsigned long rate, int irq, unsigned int cpu)
{
/*
* The channels 0 and 1 can be chained to build a 64-bit
@@ -163,7 +163,7 @@ static int __init pit_clockevent_init(struct pit_timer *pit, void __iomem *base,
BUG_ON(request_irq(irq, pit_timer_interrupt, IRQF_TIMER | IRQF_IRQPOLL,
"VF pit timer", &pit->ced));
- pit->ced.cpumask = cpumask_of(0);
+ pit->ced.cpumask = cpumask_of(cpu);
pit->ced.irq = irq;
pit->ced.name = "VF pit timer";
@@ -221,6 +221,6 @@ static int __init pit_timer_init(struct device_node *np)
if (ret)
return ret;
- return pit_clockevent_init(&pit_timer, timer_base, clk_rate, irq);
+ return pit_clockevent_init(&pit_timer, timer_base, clk_rate, irq, 0);
}
TIMER_OF_DECLARE(vf610, "fsl,vf610-pit", pit_timer_init);
Powered by blists - more mailing lists