PERFORCE change 29364 for review

Marcel Moolenaar marcel at FreeBSD.org
Mon Apr 21 13:18:32 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=29364

Change 29364 by marcel at 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. */
 }


More information about the p4-projects mailing list