Skip to content

Commit

Permalink
[ACPI] reduce kernel size: move 5BK .bss to 2.5KB .init.data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Len Brown committed Dec 30, 2005
1 parent c1a959d commit 04348e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#define PREFIX "ACPI: "

#define ACPI_MAX_TABLES 256
#define ACPI_MAX_TABLES 128

static char *acpi_table_signatures[ACPI_TABLE_COUNT] = {
[ACPI_TABLE_UNKNOWN] = "????",
Expand Down Expand Up @@ -74,7 +74,7 @@ struct acpi_table_sdt {
static unsigned long sdt_pa; /* Physical Address */
static unsigned long sdt_count; /* Table count */

static struct acpi_table_sdt sdt_entry[ACPI_MAX_TABLES];
static struct acpi_table_sdt sdt_entry[ACPI_MAX_TABLES] __initdata;

void acpi_table_print(struct acpi_table_header *header, unsigned long phys_addr)
{
Expand Down

0 comments on commit 04348e6

Please sign in to comment.