MFC: Allow L2 caches to be shared between processors by default.
Approved by: re (scottl)
This commit is contained in:
parent
7597bbc0f2
commit
7bf4fa47d9
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user