Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Aug 2010 20:34:53 +0000 (UTC)
From:      David Malone <dwmalone@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211082 - in head/sys: amd64/amd64 i386/i386
Message-ID:  <201008082034.o78KYrOd070957@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008082034.o78KYrOd070957>