PERFORCE change 143605 for review

Marko Zec zec at FreeBSD.org
Mon Jun 16 17:46:44 UTC 2008


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

Change 143605 by zec at zec_tca51 on 2008/06/16 17:46:21

	cp_time is now a per-cpu array, so atomic_add_long() is
	not needed here.

Affected files ...

.. //depot/projects/vimage/src/sys/kern/kern_clock.c#17 edit

Differences ...

==== //depot/projects/vimage/src/sys/kern/kern_clock.c#17 (text+ko) ====

@@ -496,7 +496,8 @@
 				sel = CP_IDLE;
 		}
 	}
-	atomic_add_long(&cp_time[sel], 1); /* XXX remove atomic! */
+	cp_time[sel]++;
+
 #ifdef VIMAGE
 	if (sel != CP_INTR)
 		sel = CP_IDLE;


More information about the p4-projects mailing list