PERFORCE change 94264 for review

Marcel Moolenaar marcel at FreeBSD.org
Wed Mar 29 22:09:02 UTC 2006


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

Change 94264 by marcel at marcel_nfs on 2006/03/29 22:08:51

	Fix braino: We keep track of line signal changes even if
	the device isn't open. This means that when a device gets
	opened, sc_ttypend may not be 0 and we will therefore
	never schedule the SWI. Do what I intended and limit the
	test to the interrupt pending bits.

Affected files ...

.. //depot/projects/uart/dev/uart/uart_core.c#50 edit

Differences ...

==== //depot/projects/uart/dev/uart/uart_core.c#50 (text+ko) ====

@@ -84,7 +84,7 @@
 		new = old | ipend;
 	} while (!atomic_cmpset_32(&sc->sc_ttypend, old, new));
 
-	if (old == 0)
+	if ((old & SER_INT_MASK) == 0)
 		swi_sched(sc->sc_softih, 0);
 }
 


More information about the p4-projects mailing list