Backport struct chx_qh changes from master.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2022-04-08 19:50:21 +09:00
parent a6b96fe434
commit daca396027
5 changed files with 49 additions and 28 deletions

View File

@@ -276,7 +276,7 @@ chx_handle_intr (void)
chx_disable_intr (irq_num);
chx_spin_lock (&q_intr.lock);
for (p = q_intr.q.next; p != (struct chx_pq *)&q_intr.q; p = p->next)
FOR_QUEUE (p, (&q_intr.q), struct chx_pq *)
if (p->v == irq_num)
{ /* should be one at most. */
struct chx_px *px = (struct chx_px *)p;