aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-04-05 02:14:15 -0400
committerLen Brown <len.brown@intel.com>2009-04-05 02:14:15 -0400
commit478c6a43fcbc6c11609f8cee7c7b57223907754f (patch)
treea7f7952099da60d33032aed6de9c0c56c9f8779e /drivers/acpi/acpica
parent8a3f257c704e02aee9869decd069a806b45be3f1 (diff)
parent6bb597507f9839b13498781e481f5458aea33620 (diff)
Merge branch 'linus' into release
Conflicts: arch/x86/kernel/cpu/cpufreq/longhaul.c Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r--drivers/acpi/acpica/tbxface.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/tbxface.c b/drivers/acpi/acpica/tbxface.c
index dbca22651504..a88f02bd6c94 100644
--- a/drivers/acpi/acpica/tbxface.c
+++ b/drivers/acpi/acpica/tbxface.c
@@ -363,7 +363,7 @@ ACPI_EXPORT_SYMBOL(acpi_unload_table_id)
363 363
364/******************************************************************************* 364/*******************************************************************************
365 * 365 *
366 * FUNCTION: acpi_get_table 366 * FUNCTION: acpi_get_table_with_size
367 * 367 *
368 * PARAMETERS: Signature - ACPI signature of needed table 368 * PARAMETERS: Signature - ACPI signature of needed table
369 * Instance - Which instance (for SSDTs) 369 * Instance - Which instance (for SSDTs)
@@ -375,8 +375,9 @@ ACPI_EXPORT_SYMBOL(acpi_unload_table_id)
375 * 375 *
376 ******************************************************************************/ 376 ******************************************************************************/
377acpi_status 377acpi_status
378acpi_get_table(char *signature, 378acpi_get_table_with_size(char *signature,
379 u32 instance, struct acpi_table_header **out_table) 379 u32 instance, struct acpi_table_header **out_table,
380 acpi_size *tbl_size)
380{ 381{
381 u32 i; 382 u32 i;
382 u32 j; 383 u32 j;
@@ -405,6 +406,7 @@ acpi_get_table(char *signature,
405 acpi_tb_verify_table(&acpi_gbl_root_table_list.tables[i]); 406 acpi_tb_verify_table(&acpi_gbl_root_table_list.tables[i]);
406 if (ACPI_SUCCESS(status)) { 407 if (ACPI_SUCCESS(status)) {
407 *out_table = acpi_gbl_root_table_list.tables[i].pointer; 408 *out_table = acpi_gbl_root_table_list.tables[i].pointer;
409 *tbl_size = acpi_gbl_root_table_list.tables[i].length;
408 } 410 }
409 411
410 if (!acpi_gbl_permanent_mmap) { 412 if (!acpi_gbl_permanent_mmap) {
@@ -417,6 +419,15 @@ acpi_get_table(char *signature,
417 return (AE_NOT_FOUND); 419 return (AE_NOT_FOUND);
418} 420}
419 421
422acpi_status
423acpi_get_table(char *signature,
424 u32 instance, struct acpi_table_header **out_table)
425{
426 acpi_size tbl_size;
427
428 return acpi_get_table_with_size(signature,
429 instance, out_table, &tbl_size);
430}
420ACPI_EXPORT_SYMBOL(acpi_get_table) 431ACPI_EXPORT_SYMBOL(acpi_get_table)
421 432
422/******************************************************************************* 433/*******************************************************************************