diff options
author | Bob Moore <robert.moore@intel.com> | 2008-11-12 02:34:52 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-29 22:38:37 -0500 |
commit | 009c4cbe99bea2da53f29ad685975a36f38c001c (patch) | |
tree | 170887ee9986ae84792200abd3f3022df01630ce /drivers/acpi/tables/tbutils.c | |
parent | c87609f31a8641009641fc1d19dac75e6de06fd4 (diff) |
ACPICA: Add global pointer for FACS table to simplify FACS access
Use a global pointer instead of using AcpiGetTableByIndex for
each FACS access. This simplifies the code for the Global Lock
and the Firmware Waking Vector(s).
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/tables/tbutils.c')
-rw-r--r-- | drivers/acpi/tables/tbutils.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/acpi/tables/tbutils.c b/drivers/acpi/tables/tbutils.c index 0cc92ef5236f..50e677711e5b 100644 --- a/drivers/acpi/tables/tbutils.c +++ b/drivers/acpi/tables/tbutils.c | |||
@@ -113,6 +113,30 @@ acpi_tb_check_xsdt(acpi_physical_address address) | |||
113 | 113 | ||
114 | /******************************************************************************* | 114 | /******************************************************************************* |
115 | * | 115 | * |
116 | * FUNCTION: acpi_tb_initialize_facs | ||
117 | * | ||
118 | * PARAMETERS: None | ||
119 | * | ||
120 | * RETURN: Status | ||
121 | * | ||
122 | * DESCRIPTION: Create a permanent mapping for the FADT and save it in a global | ||
123 | * for accessing the Global Lock and Firmware Waking Vector | ||
124 | * | ||
125 | ******************************************************************************/ | ||
126 | |||
127 | acpi_status acpi_tb_initialize_facs(void) | ||
128 | { | ||
129 | acpi_status status; | ||
130 | |||
131 | status = acpi_get_table_by_index(ACPI_TABLE_INDEX_FACS, | ||
132 | ACPI_CAST_INDIRECT_PTR(struct | ||
133 | acpi_table_header, | ||
134 | &acpi_gbl_FACS)); | ||
135 | return status; | ||
136 | } | ||
137 | |||
138 | /******************************************************************************* | ||
139 | * | ||
116 | * FUNCTION: acpi_tb_tables_loaded | 140 | * FUNCTION: acpi_tb_tables_loaded |
117 | * | 141 | * |
118 | * PARAMETERS: None | 142 | * PARAMETERS: None |