Date: Sun, 16 Nov 2003 14:46:15 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 42591 for review Message-ID: <200311162246.hAGMkF7q026108@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=42591 Change 42591 by peter@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311162246.hAGMkF7q026108>