Skip to contentSkip to conversation

clocksource/bcm2835: irq_pipeline: set clockevent IRQ

PATCH Applied Jan Kiszka 2 participants 2 messages Nov 17 – Nov 18

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 clocksource/bcm2835: irq_pipeline: set clockevent IRQ

From: Jan Kiszka <[email protected]>

The bcm2835 system timer never filled clock_event_device::irq, so switching it oob and marking it as IRQ_TICK targeted IRQ 0 instead.

Assisted-by opencode:Opus-5.5

---

The AI comes with these piecewise, this time while actually reviewing a 6.12 branch for the 3rd or 4th time.

 drivers/clocksource/bcm2835_timer.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clocksource/bcm2835_timer.c +1 -0
index c3d5739da5ec4..73ae9b678decf 100644
@@ -125,6 +125,7 @@ static int __init bcm2835_timer_init(struct device_node *node)
 	timer->evt.features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PIPELINE;
 	timer->evt.set_next_event = bcm2835_time_set_next_event;
 	timer->evt.cpumask = cpumask_of(0);
+	timer->evt.irq = irq;
 
 	ret = request_irq(irq, bcm2835_time_interrupt, IRQF_TIMER | IRQF_SHARED,
 			  node->name, timer);
Signature · 1 line
2.47.3
#1 lore raw
Quoted 20 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

The bcm2835 system timer never filled clock_event_device::irq, so switching it oob and marking it as IRQ_TICK targeted IRQ 0 instead.

Assisted-by opencode:Opus-5.5

---

The AI comes with these piecewise, this time while actually reviewing a 6.12 branch for the 3rd or 4th time.

 drivers/clocksource/bcm2835_timer.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clocksource/bcm2835_timer.c +0 -0
index c3d5739da5ec4..73ae9b678decf 100644

drivers/clocksource/bcm2835_timer.c static int __init bcm2835_timer_init(struct device_node *node) · line 131

Quoted 7 lines
drivers/clocksource/bcm2835_timer.c +1 -0
@@ -125,6 +125,7 @@ static int __init bcm2835_timer_init(struct device_node *node)
 	timer->evt.features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PIPELINE;
 	timer->evt.set_next_event = bcm2835_time_set_next_event;
 	timer->evt.cpumask = cpumask_of(0);
+	timer->evt.irq = irq;
 
 	ret = request_irq(irq, bcm2835_time_interrupt, IRQF_TIMER | IRQF_SHARED,
 			  node->name, timer);

Merged, thanks.

Signature · 1 line
Philippe.