Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19784
b: refs/heads/master
c: 7f66ae4
h: refs/heads/master
v: v3
  • Loading branch information
Ashok Raj authored and Linus Torvalds committed Feb 5, 2006
1 parent 9d47ac5 commit 23108c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: d646bce4c77af72f5a293a96fbf14174c9f2a9c2
refs/heads/master: 7f66ae48de27bc9506cff0f2991d74901a0c2f8d
13 changes: 10 additions & 3 deletions trunk/arch/i386/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,17 @@ acpi_parse_lapic(acpi_table_entry_header * header, const unsigned long end)

acpi_table_print_madt_entry(header);

/* Register even disabled CPUs for cpu hotplug */

x86_acpiid_to_apicid[processor->acpi_id] = processor->id;
/* Record local apic id only when enabled */
if (processor->flags.enabled)
x86_acpiid_to_apicid[processor->acpi_id] = processor->id;

/*
* We need to register disabled CPU as well to permit
* counting disabled CPUs. This allows us to size
* cpus_possible_map more accurately, to permit
* to not preallocating memory for all NR_CPUS
* when we use CPU hotplug.
*/
mp_register_lapic(processor->id, /* APIC ID */
processor->flags.enabled); /* Enabled? */

Expand Down

0 comments on commit 23108c1

Please sign in to comment.