mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Parse all ACPI MADT entries, not just NR_CPUS (by Alex Williamson)
This commit is contained in:
1 parent
da6c57b623
commit
64f8b7c045
1 file changed
+1
-4
@@ -466,11 +466,8 @@ acpi_update_madt_checksum (unsigned long phys_addr, unsigned long size)
|
||||
/* base is physical address of acpi table */
|
||||
void touch_acpi_table(void)
|
||||
{
|
||||
u64 count = 0;
|
||||
count = acpi_table_parse_madt(ACPI_MADT_LSAPIC, acpi_update_lsapic, NR_CPUS);
|
||||
if ( count < 1)
|
||||
if (acpi_table_parse_madt(ACPI_MADT_LSAPIC, acpi_update_lsapic, 0) < 0)
|
||||
printk("Error parsing MADT - no LAPIC entires\n");
|
||||
printk("Total %d lsapic entry\n", count);
|
||||
acpi_table_parse(ACPI_APIC, acpi_update_madt_checksum);
|
||||
|
||||
return;
|
||||
|
||||