Commit 1d65df6c authored by Philippe Gerum's avatar Philippe Gerum

ipipe: timer: ensure no timer ack is missed while grabbing the tickdev

See https://www.xenomai.org/pipermail/xenomai/2019-March/040460.html
parent 5ede4ee7
......@@ -367,15 +367,18 @@ static void __ipipe_ack_hrtimer_irq(struct irq_desc *desc)
{
struct ipipe_timer *timer = __ipipe_raw_cpu_read(percpu_timer);
/*
* Pseudo-IRQs like pipelined IPIs have no descriptor, we have
* to check for this.
*/
if (desc)
desc->ipipe_ack(desc);
if (timer->host_timer->ipipe_stolen) {
if (timer->ack)
timer->ack();
if (desc)
desc->ipipe_end(desc);
}
if (timer->ack)
timer->ack();
if (desc)
desc->ipipe_end(desc);
}
static int do_set_oneshot(struct clock_event_device *cdev)
......
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