Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/hp300 Use LIST_INSERT_HEAD() to access the he...



details:   https://anonhg.NetBSD.org/src/rev/2a4ca0b925d4
branches:  trunk
changeset: 521977:2a4ca0b925d4
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sun Feb 10 00:42:15 2002 +0000

description:
Use LIST_INSERT_HEAD() to access the head on the interrupt list.

diffstat:

 sys/arch/hp300/hp300/intr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 92f4c898aacd -r 2a4ca0b925d4 sys/arch/hp300/hp300/intr.c
--- a/sys/arch/hp300/hp300/intr.c       Sun Feb 10 00:41:21 2002 +0000
+++ b/sys/arch/hp300/hp300/intr.c       Sun Feb 10 00:42:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.20 2001/12/08 04:00:22 gmcgarry Exp $       */
+/*     $NetBSD: intr.c,v 1.21 2002/02/10 00:42:15 gmcgarry Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1999 The NetBSD Foundation, Inc.
@@ -225,7 +225,7 @@
         */
 
        if (LIST_FIRST(&hp300_intr_list[ipl].hi_q) == NULL) {
-               hp300_intr_list[ipl].hi_q.lh_first = newih;             
+               LIST_INSERT_HEAD(&hp300_intr_list[ipl].hi_q, newih, ih_q);
                goto compute;
        }
 



Home | Main Index | Thread Index | Old Index