aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/mptable.h
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-05-15 05:12:24 +0000
committerAlan Cox <alc@FreeBSD.org>2003-05-15 05:12:24 +0000
commit4a0d6dfd2cffd0c806af38ee593ab1bb6ef88d4f (patch)
treeeb62e2fd9f6e754fcf60829a2fc5bb2cd5866d96 /sys/amd64/include/mptable.h
parent2a9fc226455fd4c7be9183075d93b10d7b1a0795 (diff)
Notes
Diffstat (limited to 'sys/amd64/include/mptable.h')
-rw-r--r--sys/amd64/include/mptable.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/amd64/include/mptable.h b/sys/amd64/include/mptable.h
index 4cc8bf545791..d630bd583aa4 100644
--- a/sys/amd64/include/mptable.h
+++ b/sys/amd64/include/mptable.h
@@ -999,9 +999,12 @@ mptable_pass2(void)
while (count--) {
switch (type = *(u_char *) position) {
case 0:
- if (processor_entry(position, cpu))
+ if (processor_entry(position, cpu)) {
+ if (logical_cpus != 0 &&
+ cpu % logical_cpus != 0)
+ logical_cpus_mask |= (1 << cpu);
++cpu;
-
+ }
if (need_hyperthreading_fixup) {
/*
* Create fake mptable processor entries