summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2006-12-06 18:27:17 +0000
committersobomax <sobomax@FreeBSD.org>2006-12-06 18:27:17 +0000
commit8563c840b54263435c65ca68a111163dce90d536 (patch)
tree7daea6c332cae5d30819932cee2a402537fe261e /sys/amd64
parent3ed6c23aa47d2d8933109e620bd517b6fc1fff8e (diff)
downloadFreeBSD-src-8563c840b54263435c65ca68a111163dce90d536.zip
FreeBSD-src-8563c840b54263435c65ca68a111163dce90d536.tar.gz
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
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 348bfef..c7dd71f 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -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");
OpenPOWER on IntegriCloud