Allow machdep.cpu_idle_hlt to be set from the loader. This should allow
to workaround the problem with SMP kernels on Turion64 X2 processors described in kern/104678 and may be useful in other situations too. MFC after: 3 days
This commit is contained in:
parent
3ed6c23aa4
commit
8563c840b5
@ -514,6 +514,7 @@ cpu_halt(void)
|
||||
* help lock contention somewhat, and this is critical for HTT. -Peter
|
||||
*/
|
||||
static int cpu_idle_hlt = 1;
|
||||
TUNABLE_INT("machdep.cpu_idle_hlt", &cpu_idle_hlt);
|
||||
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
|
||||
&cpu_idle_hlt, 0, "Idle loop HLT enable");
|
||||
|
||||
|
@ -1112,6 +1112,7 @@ cpu_halt(void)
|
||||
* help lock contention somewhat, and this is critical for HTT. -Peter
|
||||
*/
|
||||
static int cpu_idle_hlt = 1;
|
||||
TUNABLE_INT("machdep.cpu_idle_hlt", &cpu_idle_hlt);
|
||||
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
|
||||
&cpu_idle_hlt, 0, "Idle loop HLT enable");
|
||||
|
||||
|
@ -1109,6 +1109,7 @@ cpu_halt(void)
|
||||
* help lock contention somewhat, and this is critical for HTT. -Peter
|
||||
*/
|
||||
static int cpu_idle_hlt = 1;
|
||||
TUNABLE_INT("machdep.cpu_idle_hlt", &cpu_idle_hlt);
|
||||
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
|
||||
&cpu_idle_hlt, 0, "Idle loop HLT enable");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user