Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2009 20:17:50 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r199941 - head/sys/ia64/include
Message-ID:  <200911292017.nATKHoIe007881@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sun Nov 29 20:17:50 2009
New Revision: 199941
URL: http://svn.freebsd.org/changeset/base/199941

Log:
  Move the sysctl related fields to the end of the structure and
  make them conditional upon _KERNEL. libkvm includes <sys/pcpu.h>
  and <sys/sysctl.h> does not expose the structure definitions to
  userland.

Modified:
  head/sys/ia64/include/pcpu.h

Modified: head/sys/ia64/include/pcpu.h
==============================================================================
--- head/sys/ia64/include/pcpu.h	Sun Nov 29 20:12:07 2009	(r199940)
+++ head/sys/ia64/include/pcpu.h	Sun Nov 29 20:17:50 2009	(r199941)
@@ -34,9 +34,6 @@
 #include <machine/pcb.h>
 
 struct pcpu_stats {
-	struct sysctl_ctx_list pcs_sysctl_ctx;
-	struct sysctl_oid *pcs_sysctl_tree;
-
 	u_long		pcs_nasts;		/* IPI_AST counter. */
 	u_long		pcs_nclks;		/* Clock interrupt counter. */
 	u_long		pcs_nextints;		/* ExtINT counter. */
@@ -46,6 +43,11 @@ struct pcpu_stats {
 	u_long		pcs_nrdvs;		/* IPI_RENDEZVOUS counter. */
 	u_long		pcs_nstops;		/* IPI_STOP counter. */
 	u_long		pcs_nstrays;		/* Stray interrupt counter. */
+
+#ifdef _KERNEL
+	struct sysctl_ctx_list pcs_sysctl_ctx;
+	struct sysctl_oid *pcs_sysctl_tree;
+#endif
 };
 
 #define	PCPU_MD_FIELDS							\



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