From owner-svn-src-head@FreeBSD.ORG Sun Nov 29 20:17:50 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2412106566C; Sun, 29 Nov 2009 20:17:50 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D27B28FC12; Sun, 29 Nov 2009 20:17:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nATKHogo007883; Sun, 29 Nov 2009 20:17:50 GMT (envelope-from marcel@svn.freebsd.org) Received: (from marcel@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nATKHoIe007881; Sun, 29 Nov 2009 20:17:50 GMT (envelope-from marcel@svn.freebsd.org) Message-Id: <200911292017.nATKHoIe007881@svn.freebsd.org> From: Marcel Moolenaar Date: Sun, 29 Nov 2009 20:17:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r199941 - head/sys/ia64/include X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2009 20:17:51 -0000 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 and 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 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 \