Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11773
b: refs/heads/master
c: 6c180d9
h: refs/heads/master
i:
  11771: d456ae8
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Oct 31, 2005
1 parent b3695b3 commit 908a02a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 009b29d90f575a83eba185950a7182ab05e7741a
refs/heads/master: 6c180d94abdcfb77a2fe4275bd03687fa159acd7
35 changes: 19 additions & 16 deletions trunk/arch/i386/kernel/mpparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,6 @@ static void __devinit MP_processor_info (struct mpc_config_processor *m)
boot_cpu_physical_apicid = m->mpc_apicid;
}

if (num_processors >= NR_CPUS) {
printk(KERN_WARNING "WARNING: NR_CPUS limit of %i reached."
" Processor ignored.\n", NR_CPUS);
return;
}

if (num_processors >= maxcpus) {
printk(KERN_WARNING "WARNING: maxcpus limit of %i reached."
" Processor ignored.\n", maxcpus);
return;
}
ver = m->mpc_apicver;

if (!MP_valid_apicid(apicid, ver)) {
Expand All @@ -201,11 +190,6 @@ static void __devinit MP_processor_info (struct mpc_config_processor *m)
return;
}

cpu_set(num_processors, cpu_possible_map);
num_processors++;
phys_cpu = apicid_to_cpu_present(apicid);
physids_or(phys_cpu_present_map, phys_cpu_present_map, phys_cpu);

/*
* Validate version
*/
Expand All @@ -216,6 +200,25 @@ static void __devinit MP_processor_info (struct mpc_config_processor *m)
ver = 0x10;
}
apic_version[m->mpc_apicid] = ver;

phys_cpu = apicid_to_cpu_present(apicid);
physids_or(phys_cpu_present_map, phys_cpu_present_map, phys_cpu);

if (num_processors >= NR_CPUS) {
printk(KERN_WARNING "WARNING: NR_CPUS limit of %i reached."
" Processor ignored.\n", NR_CPUS);
return;
}

if (num_processors >= maxcpus) {
printk(KERN_WARNING "WARNING: maxcpus limit of %i reached."
" Processor ignored.\n", maxcpus);
return;
}

cpu_set(num_processors, cpu_possible_map);
num_processors++;

if ((num_processors > 8) &&
APIC_XAPIC(ver) &&
(boot_cpu_data.x86_vendor == X86_VENDOR_INTEL))
Expand Down

0 comments on commit 908a02a

Please sign in to comment.