PERFORCE change 115616 for review

Paolo Pisati piso at FreeBSD.org
Fri Mar 9 17:09:00 UTC 2007


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

Change 115616 by piso at piso_newluxor on 2007/03/09 17:08:38

	Fix compilation for non-INTR_FILTER case.

Affected files ...

.. //depot/projects/soc2006/intr_filter/kern/kern_intr.c#39 edit

Differences ...

==== //depot/projects/soc2006/intr_filter/kern/kern_intr.c#39 (text+ko) ====

@@ -893,8 +893,13 @@
 		if (!(ie->ie_flags & IE_SOFT))
 			return (EINVAL);
 	} else {
+#ifdef INTR_FILTER
 		error = intr_event_create(&ie, NULL, IE_SOFT,
 		    NULL, NULL, NULL, "swi%d:", pri);
+#else
+		error = intr_event_create(&ie, NULL, IE_SOFT,
+		    NULL, "swi%d:", pri);
+#endif
 		if (error)
 			return (error);
 		if (eventp != NULL)
@@ -927,7 +932,11 @@
 
 	if (!(flags & SWI_DELAY)) {
 		PCPU_LAZY_INC(cnt.v_soft);
+#ifdef INTR_FILTER
 		error = intr_event_schedule_thread(ie, ie->ie_thread);
+#else
+		error = intr_event_schedule_thread(ie);
+#endif
 		KASSERT(error == 0, ("stray software interrupt"));
 	}
 }


More information about the p4-projects mailing list