- Style nits.
- Remove unneeded TUNABLE_INT(). Suggested by: avg, kib
This commit is contained in:
parent
2deaa94b6a
commit
bb830eceaa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199215
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user