diff options
author | marcel <marcel@FreeBSD.org> | 2009-11-29 20:17:50 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-11-29 20:17:50 +0000 |
commit | 3797d9ecfd0598a6d59a7637523545b49a4af853 (patch) | |
tree | f68640e4a49e733d8caa97bc7e4a14fcb8103548 /sys/ia64 | |
parent | d4d8859e1ebaf0a42c1560ac30d2a8001f069f3b (diff) | |
download | FreeBSD-src-3797d9ecfd0598a6d59a7637523545b49a4af853.zip FreeBSD-src-3797d9ecfd0598a6d59a7637523545b49a4af853.tar.gz |
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.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/include/pcpu.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/ia64/include/pcpu.h b/sys/ia64/include/pcpu.h index 3a258fa..05304bc 100644 --- a/sys/ia64/include/pcpu.h +++ b/sys/ia64/include/pcpu.h @@ -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 \ |