Commit 98bd939a authored by Federico Vaga's avatar Federico Vaga

sw:drv: bugfix sent statistic counter

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 9e94923b
......@@ -1005,12 +1005,13 @@ static void trtl_mesage_push_from_buf(struct trtl_hmq *hmq)
if (likely(buf->idx_w != buf->idx_r)) {
msg = &buf->msg[buf->idx_r++ & (hmq_buf_max_msg - 1)];
trtl_message_push(hmq, msg);
buf->count++;
if (buf->idx_w == buf->idx_r)
trtl_hmq_irq_disable(hmq, 1);
}
spin_unlock_irqrestore(&buf->lock, flags);
buf->count++;
wake_up_interruptible(&hmq->q_msg);
}
......
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