]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust the way we number CPUs on x86 so that we attempt to "group" all
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 22 Apr 2009 21:40:37 +0000 (21:40 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 22 Apr 2009 21:40:37 +0000 (21:40 +0000)
commit125f11d3608ea11365463865fdec76a51032be36
tree8e44dd5c2be65e206ddba4a7a6a8b2c55ec00efe
parent47479a8ceb2e8e710ff6defe1c985437a2497b6b
Adjust the way we number CPUs on x86 so that we attempt to "group" all
logical CPUs in a package.  We do this by numbering the non-boot CPUs
by starting with the first CPU whose APIC ID is after the boot CPU and
wrapping back around to APIC ID 0 if needed rather than always starting
at APIC ID 0.  While here, adjust the cpu_mp_announce() routine to list
CPUs based on the mapping established by assign_cpu_ids() rather than
making assumptions about the algorithm assign_cpu_ids() uses.

MFC after: 1 month
sys/amd64/amd64/mp_machdep.c
sys/i386/i386/mp_machdep.c