summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--sys/amd64/amd64/machdep.c1
-rw-r--r--sys/i386/i386/machdep.c1
-rw-r--r--sys/pc98/pc98/machdep.c1
3 files changed, 3 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");
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 2dc54ec..ef64b95e 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -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");
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 1bd8c25..7bc0080 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -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");
OpenPOWER on IntegriCloud