svn commit: r211082 - in head/sys: amd64/amd64 i386/i386

David Malone dwmalone at FreeBSD.org
Sun Aug 8 20:34:53 UTC 2010


Author: dwmalone
Date: Sun Aug  8 20:34:53 2010
New Revision: 211082
URL: http://svn.freebsd.org/changeset/base/211082

Log:
  Don't pass sizeof(u_int) to an argument of SYSCLT_PROC that ends up not
  being used.

Modified:
  head/sys/amd64/amd64/tsc.c
  head/sys/i386/i386/tsc.c

Modified: head/sys/amd64/amd64/tsc.c
==============================================================================
--- head/sys/amd64/amd64/tsc.c	Sun Aug  8 19:07:59 2010	(r211081)
+++ head/sys/amd64/amd64/tsc.c	Sun Aug  8 20:34:53 2010	(r211082)
@@ -222,7 +222,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_A
 }
 
 SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_QUAD | CTLFLAG_RW,
-    0, sizeof(u_int), sysctl_machdep_tsc_freq, "QU", "");
+    0, 0, sysctl_machdep_tsc_freq, "QU", "");
 
 static unsigned
 tsc_get_timecount(struct timecounter *tc)

Modified: head/sys/i386/i386/tsc.c
==============================================================================
--- head/sys/i386/i386/tsc.c	Sun Aug  8 19:07:59 2010	(r211081)
+++ head/sys/i386/i386/tsc.c	Sun Aug  8 20:34:53 2010	(r211082)
@@ -250,7 +250,7 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_A
 }
 
 SYSCTL_PROC(_machdep, OID_AUTO, tsc_freq, CTLTYPE_QUAD | CTLFLAG_RW,
-    0, sizeof(u_int), sysctl_machdep_tsc_freq, "QU", "");
+    0, 0, sysctl_machdep_tsc_freq, "QU", "");
 
 static unsigned
 tsc_get_timecount(struct timecounter *tc)


More information about the svn-src-head mailing list