PERFORCE change 42591 for review

Peter Wemm peter at FreeBSD.org
Sun Nov 16 14:46:16 PST 2003


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

Change 42591 by peter at peter_overcee on 2003/11/16 14:46:11

	remove some #if 0's and some artificial divisors on the clock
	forwarding (to reduce the ktr log rate)

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#37 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#37 (text+ko) ====

@@ -809,9 +809,7 @@
 {
 	struct thread *td;
 
-#if 0
 	CTR0(KTR_SMP, "forwarded_statclock");
-#endif
 	td = curthread;
 	td->td_intr_nesting_level++;
 	if (profprocs != 0)
@@ -825,18 +823,12 @@
 forward_statclock(void)
 {
 	int map;
-	static int foocnt;
 
-#if 0
 	CTR0(KTR_SMP, "forward_statclock");
-#endif
 
 	if (!smp_started || cold || panicstr)
 		return;
 
-	foocnt++;
-	if ((foocnt % 100) != 0)
-		return;
 	map = PCPU_GET(other_cpus) & ~(stopped_cpus|hlt_cpus_mask);
 	if (map != 0)
 		ipi_selected(map, IPI_STATCLOCK);
@@ -854,9 +846,7 @@
 {
 	struct thread *td;
 
-#if 0
 	CTR0(KTR_SMP, "forwarded_hardclock");
-#endif
 	td = curthread;
 	td->td_intr_nesting_level++;
 	hardclock_process(&frame);
@@ -867,18 +857,12 @@
 forward_hardclock(void)
 {
 	u_int map;
-	static int foocnt;
 
-#if 0
 	CTR0(KTR_SMP, "forward_hardclock");
-#endif
 
 	if (!smp_started || cold || panicstr)
 		return;
 
-	foocnt++;
-	if ((foocnt % 100) != 0)
-		return;
 	map = PCPU_GET(other_cpus) & ~(stopped_cpus|hlt_cpus_mask);
 	if (map != 0)
 		ipi_selected(map, IPI_HARDCLOCK);


More information about the p4-projects mailing list