MFC: Allow L2 caches to be shared between processors by default.

Approved by:	re (scottl)
This commit is contained in:
cperciva 2006-04-28 06:30:19 +00:00
parent 7597bbc0f2
commit 7bf4fa47d9
2 changed files with 4 additions and 4 deletions

View File

@ -368,8 +368,8 @@ cpu_mp_start(void)
* are available, use them.
*/
if (cpu_high >= 4) {
/* Ask the processor about up to 32 caches. */
for (i = 0; i < 32; i++) {
/* Ask the processor about the L1 cache. */
for (i = 0; i < 1; i++) {
cpuid_count(4, i, p);
threads_per_cache = ((p[0] & 0x3ffc000) >> 14) + 1;
if (hyperthreading_cpus < threads_per_cache)

View File

@ -442,8 +442,8 @@ cpu_mp_start(void)
* are available, use them.
*/
if (cpu_high >= 4) {
/* Ask the processor about up to 32 caches. */
for (i = 0; i < 32; i++) {
/* Ask the processor about the L1 cache. */
for (i = 0; i < 1; i++) {
cpuid_count(4, i, p);
threads_per_cache = ((p[0] & 0x3ffc000) >> 14) + 1;
if (hyperthreading_cpus < threads_per_cache)