diff options
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c index b51b5a6a89..f08a401a6e 100644 --- a/src/arch/x86/acpi.c +++ b/src/arch/x86/acpi.c @@ -163,7 +163,8 @@ unsigned long acpi_create_madt_lapics(unsigned long current) break; apic_ids[num_cpus++] = cpu->path.apic.apic_id; } - bubblesort(apic_ids, num_cpus, NUM_ASCENDING); + if (num_cpus > 1) + bubblesort(apic_ids, num_cpus, NUM_ASCENDING); for (index = 0; index < num_cpus; index++) { current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, index, apic_ids[index]); |