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.
This commit is contained in:
Marcel Moolenaar 2009-11-29 20:17:50 +00:00
parent df4dece102
commit 6852bd671f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199941

View file

@ -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 \