From owner-svn-src-head@FreeBSD.ORG Thu Nov 12 03:31:20 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 0EC64106566B; Thu, 12 Nov 2009 03:31:20 +0000 (UTC) (envelope-from kuriyama@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F18878FC0C; Thu, 12 Nov 2009 03:31:19 +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 nAC3VJ75016613; Thu, 12 Nov 2009 03:31:19 GMT (envelope-from kuriyama@svn.freebsd.org) Received: (from kuriyama@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nAC3VJtJ016610; Thu, 12 Nov 2009 03:31:19 GMT (envelope-from kuriyama@svn.freebsd.org) Message-Id: <200911120331.nAC3VJtJ016610@svn.freebsd.org> From: Jun Kuriyama Date: Thu, 12 Nov 2009 03:31:19 +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: r199215 - in head/sys: amd64/amd64 i386/i386 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: Thu, 12 Nov 2009 03:31:20 -0000 Author: kuriyama Date: Thu Nov 12 03:31:19 2009 New Revision: 199215 URL: http://svn.freebsd.org/changeset/base/199215 Log: - Style nits. - Remove unneeded TUNABLE_INT(). Suggested by: avg, kib Modified: head/sys/amd64/amd64/initcpu.c head/sys/i386/i386/initcpu.c Modified: head/sys/amd64/amd64/initcpu.c ============================================================================== --- head/sys/amd64/amd64/initcpu.c Thu Nov 12 01:37:25 2009 (r199214) +++ head/sys/amd64/amd64/initcpu.c Thu Nov 12 03:31:19 2009 (r199215) @@ -53,7 +53,6 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_ss * 1: force disable CLFLUSH */ static int hw_clflush_disable = -1; -TUNABLE_INT("hw.clflush_disable", &hw_clflush_disable); int cpu; /* Are we 386, 386sx, 486, etc? */ u_int cpu_feature; /* Feature flags */ @@ -185,7 +184,6 @@ initializecpu(void) * hw.clflush_disable tunable. This may help Xen guest on some AMD * CPUs. */ - if (hw_clflush_disable == 1) { + if (hw_clflush_disable == 1) cpu_feature &= ~CPUID_CLFSH; - } } Modified: head/sys/i386/i386/initcpu.c ============================================================================== --- head/sys/i386/i386/initcpu.c Thu Nov 12 01:37:25 2009 (r199214) +++ head/sys/i386/i386/initcpu.c Thu Nov 12 03:31:19 2009 (r199215) @@ -81,7 +81,6 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_ss * 1: force disable CLFLUSH */ static int hw_clflush_disable = -1; -TUNABLE_INT("hw.clflush_disable", &hw_clflush_disable); /* Must *NOT* be BSS or locore will bzero these after setting them */ int cpu = 0; /* Are we 386, 386sx, 486, etc? */ @@ -737,9 +736,8 @@ initializecpu(void) * hw.clflush_disable tunable. This may help Xen guest on some AMD * CPUs. */ - if (hw_clflush_disable == 1) { + if (hw_clflush_disable == 1) cpu_feature &= ~CPUID_CLFSH; - } #if defined(PC98) && !defined(CPU_UPGRADE_HW_CACHE) /*