PERFORCE change 112984 for review

Paolo Pisati piso at FreeBSD.org
Tue Jan 16 11:42:44 UTC 2007


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

Change 112984 by piso at piso_newluxor on 2007/01/16 11:42:17

	Get rid of the spin lock acquisition in the callout path.
	While here, fix spacing.

Affected files ...

.. //depot/projects/soc2006/intr_filter/sun4v/sun4v/intr_machdep.c#4 edit

Differences ...

==== //depot/projects/soc2006/intr_filter/sun4v/sun4v/intr_machdep.c#4 (text+ko) ====

@@ -157,9 +157,10 @@
 walk_intr_sun4v(void) {
 	struct intr_vector *iv;
 	static int i = 0;
+	int j;
 
-	for (; i<IV_MAX; ) {
-		int j = i++;
+	for (; i<IV_MAX;) {
+		j = i++;
 		iv = &intr_vectors[j];
 		if (iv != NULL && iv->iv_event != NULL)
 			return (iv->iv_event);
@@ -172,10 +173,8 @@
 intr_callout_reset(void)
 {
 
-	mtx_lock_spin(&intr_table_lock);
 	callout_reset(&stray_callout_handle, hz, 
 	    &stray_detection, &walk_intr_sun4v);
-	mtx_unlock_spin(&intr_table_lock);
 }
 
 /*


More information about the p4-projects mailing list