Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2003 22:13:58 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29330 for review
Message-ID:  <200304210513.h3L5DwwN098360@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29330

Change 29330 by marcel@marcel_nfs on 2003/04/20 22:13:14

	Remove the debugging printf and invert the condition so that the
	flow of control is slightly less weird.

Affected files ...

.. //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#11 edit

Differences ...

==== //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#11 (text+ko) ====

@@ -317,12 +317,10 @@
 {
 	while (1) {
 		disable_intr();
-		if (curthread->td_flags & (TDF_ASTPENDING|TDF_NEEDRESCHED)) {
-			enable_intr();
-			printf("XXX calling ast()\n");
-			ast(tf);
-		} else
+		if (!(curthread->td_flags & (TDF_ASTPENDING|TDF_NEEDRESCHED)))
 			break;
+		enable_intr();
+		ast(tf);
 	}
 	/* Keep interrupts disabled. */
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304210513.h3L5DwwN098360>