PERFORCE change 95744 for review

Marcel Moolenaar marcel at FreeBSD.org
Fri Apr 21 02:01:08 UTC 2006


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

Change 95744 by marcel at marcel_nfs on 2006/04/21 02:00:10

	o  Include <sys/mutex.h>
	o  Set port->p_giantintr when both INTR_FAST and INTR_MPSAFE
	   are unset.

Affected files ...

.. //depot/projects/uart/dev/puc/puc.c#32 edit

Differences ...

==== //depot/projects/uart/dev/puc/puc.c#32 (text+ko) ====

@@ -33,6 +33,7 @@
 #include <sys/bus.h>
 #include <sys/conf.h>
 #include <sys/malloc.h>
+#include <sys/mutex.h>
 
 #include <machine/bus.h>
 #include <machine/resource.h>
@@ -582,7 +583,7 @@
 
 	port->p_hasintr = 1;
 	port->p_fastintr = (flags & INTR_FAST) ? 1 : 0;
-	port->p_giantintr = (flags & INTR_MPSAFE) ? 0 : 1;
+	port->p_giantintr = (flags & (INTR_FAST | INTR_MPSAFE)) ? 0 : 1;
 	port->p_ih = ihand;
 	port->p_iharg = arg;
 


More information about the p4-projects mailing list