lots of ACPI tables
PATCH 1/1 lots of ACPI tables
This patch written by Bjorn Helgaas supports more ACPI tables. Limiting the maximum number of tables to the number of different tables we recognise is clearly bogus -- some tables can appear more than once. And if we ignore some tables, the subtraction was backwards.
drivers/acpi/tables.c renamed from linux-acpi0726/drivers/acpi/tables.c +3 -3
@@ -36,7 +36,7 @@#define PREFIX "ACPI: " -#define ACPI_MAX_TABLES ACPI_TABLE_COUNT +#define ACPI_MAX_TABLES 256static char *acpi_table_signatures[ACPI_TABLE_COUNT ] = { [ACPI_TABLE_UNKNOWN ] ="????" ,
@@ -338,7 +338,7 @@ acpi_table_get_sdt ( sdt.count = (header->length -sizeof (struct acpi_table_header )) >>3 ;if (sdt.count >ACPI_MAX_TABLES ) { printk(KERN_WARNING PREFIX "Truncated %lu XSDT entries\n", - (ACPI_MAX_TABLES - sdt.count)); + (sdt.count - ACPI_MAX_TABLES)); sdt.count =ACPI_MAX_TABLES ; }
@@ -383,7 +383,7 @@ acpi_table_get_sdt ( sdt.count = (header->length -sizeof (struct acpi_table_header )) >>2 ;if (sdt.count >ACPI_MAX_TABLES ) { printk(KERN_WARNING PREFIX "Truncated %lu RSDT entries\n", - (ACPI_TABLE_COUNT - sdt.count)); + (sdt.count - ACPI_TABLE_COUNT)); sdt.count =ACPI_MAX_TABLES ; }
Signature · 7 lines
Revolutions do not require corporate support. ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31