Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ACPI] reduce kernel size: move 5BK .bss to 2.5KB .init.data

put __initdata on sdt_entry[], as it is accessed only by __init functions.

http://bugzilla.kernel.org/show_bug.cgi?id=1311

Signed-off-by: Len Brown <len.brown@intel.com>

Len Brown 04348e69 c1a959d8

+2 -2
+2 -2
drivers/acpi/tables.c
··· 37 37 38 38 #define PREFIX "ACPI: " 39 39 40 - #define ACPI_MAX_TABLES 256 40 + #define ACPI_MAX_TABLES 128 41 41 42 42 static char *acpi_table_signatures[ACPI_TABLE_COUNT] = { 43 43 [ACPI_TABLE_UNKNOWN] = "????", ··· 74 74 static unsigned long sdt_pa; /* Physical Address */ 75 75 static unsigned long sdt_count; /* Table count */ 76 76 77 - static struct acpi_table_sdt sdt_entry[ACPI_MAX_TABLES]; 77 + static struct acpi_table_sdt sdt_entry[ACPI_MAX_TABLES] __initdata; 78 78 79 79 void acpi_table_print(struct acpi_table_header *header, unsigned long phys_addr) 80 80 {