Date: Tue, 16 Jan 2007 11:42:43 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 112984 for review Message-ID: <200701161142.l0GBghPa097616@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=112984 Change 112984 by piso@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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701161142.l0GBghPa097616>