Skip to content

Commit

Permalink
acpi: MADT: do not count disabled CPUs
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Sep 21, 2020
1 parent 3261f57 commit 003ab78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ static unsigned process_madt_entries(void) {
if (madt_cpu->apic_proc_id == 0)
percpu->bsp = true;

if (!percpu->enabled)
continue;

nr_cpus++;
printk("ACPI: [MADT] APIC Processor ID: %u, APIC ID: %u, Flags: %08x\n",
madt_cpu->apic_proc_id, madt_cpu->apic_id, madt_cpu->flags);
Expand Down

0 comments on commit 003ab78

Please sign in to comment.