Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2003 13:18:29 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29364 for review
Message-ID:  <200304212018.h3LKITiv075483@repoman.freebsd.org>

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

Change 29364 by marcel@marcel_nfs on 2003/04/21 13:18:05

	Even better logic for do_ast().
	
	Suggested by: jhb

Affected files ...

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

Differences ...

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

@@ -315,12 +315,12 @@
 void
 do_ast(struct trapframe *tf)
 {
-	while (1) {
-		disable_intr();
-		if (!(curthread->td_flags & (TDF_ASTPENDING|TDF_NEEDRESCHED)))
-			break;
+
+	disable_intr();
+	while (curthread->td_flags & (TDF_ASTPENDING|TDF_NEEDRESCHED)) {
 		enable_intr();
 		ast(tf);
+		disable_intr();
 	}
 	/* Keep interrupts disabled. */
 }



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