summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2009-11-12 03:31:19 +0000
committerkuriyama <kuriyama@FreeBSD.org>2009-11-12 03:31:19 +0000
commitd5d8337d191b1a64f810b21946321a0193f9a5ed (patch)
tree635dfb5ea8e07b57414883c8b4f5183d06fae882
parent66ad61afd5711f452099fddef6d95afd15e0e152 (diff)
downloadFreeBSD-src-d5d8337d191b1a64f810b21946321a0193f9a5ed.zip
FreeBSD-src-d5d8337d191b1a64f810b21946321a0193f9a5ed.tar.gz
- Style nits.
- Remove unneeded TUNABLE_INT(). Suggested by: avg, kib
-rw-r--r--sys/amd64/amd64/initcpu.c4
-rw-r--r--sys/i386/i386/initcpu.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
index 0753306..19b784c 100644
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -53,7 +53,6 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
* 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;
- }
}
diff --git a/sys/i386/i386/initcpu.c b/sys/i386/i386/initcpu.c
index bcd9922..dad7919 100644
--- a/sys/i386/i386/initcpu.c
+++ b/sys/i386/i386/initcpu.c
@@ -81,7 +81,6 @@ SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
* 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)
/*
OpenPOWER on IntegriCloud