svn commit: r199941 - head/sys/ia64/include
Marcel Moolenaar
marcel at FreeBSD.org
Sun Nov 29 20:17:51 UTC 2009
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 \
More information about the svn-src-head
mailing list