diff options
Diffstat (limited to 'drivers/acpi/acpica/tbxface.c')
-rw-r--r-- | drivers/acpi/acpica/tbxface.c | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/drivers/acpi/acpica/tbxface.c b/drivers/acpi/acpica/tbxface.c index 416d01d9a970..dbca22651504 100644 --- a/drivers/acpi/acpica/tbxface.c +++ b/drivers/acpi/acpica/tbxface.c | |||
@@ -246,7 +246,7 @@ acpi_status acpi_load_table(struct acpi_table_header *table_ptr) | |||
246 | 246 | ||
247 | ACPI_EXPORT_SYMBOL(acpi_load_table) | 247 | ACPI_EXPORT_SYMBOL(acpi_load_table) |
248 | 248 | ||
249 | /****************************************************************************** | 249 | /******************************************************************************* |
250 | * | 250 | * |
251 | * FUNCTION: acpi_get_table_header | 251 | * FUNCTION: acpi_get_table_header |
252 | * | 252 | * |
@@ -261,7 +261,7 @@ ACPI_EXPORT_SYMBOL(acpi_load_table) | |||
261 | * NOTE: Caller is responsible in unmapping the header with | 261 | * NOTE: Caller is responsible in unmapping the header with |
262 | * acpi_os_unmap_memory | 262 | * acpi_os_unmap_memory |
263 | * | 263 | * |
264 | *****************************************************************************/ | 264 | ******************************************************************************/ |
265 | acpi_status | 265 | acpi_status |
266 | acpi_get_table_header(char *signature, | 266 | acpi_get_table_header(char *signature, |
267 | u32 instance, struct acpi_table_header *out_table_header) | 267 | u32 instance, struct acpi_table_header *out_table_header) |
@@ -276,9 +276,8 @@ acpi_get_table_header(char *signature, | |||
276 | return (AE_BAD_PARAMETER); | 276 | return (AE_BAD_PARAMETER); |
277 | } | 277 | } |
278 | 278 | ||
279 | /* | 279 | /* Walk the root table list */ |
280 | * Walk the root table list | 280 | |
281 | */ | ||
282 | for (i = 0, j = 0; i < acpi_gbl_root_table_list.count; i++) { | 281 | for (i = 0, j = 0; i < acpi_gbl_root_table_list.count; i++) { |
283 | if (!ACPI_COMPARE_NAME | 282 | if (!ACPI_COMPARE_NAME |
284 | (&(acpi_gbl_root_table_list.tables[i].signature), | 283 | (&(acpi_gbl_root_table_list.tables[i].signature), |
@@ -291,8 +290,8 @@ acpi_get_table_header(char *signature, | |||
291 | } | 290 | } |
292 | 291 | ||
293 | if (!acpi_gbl_root_table_list.tables[i].pointer) { | 292 | if (!acpi_gbl_root_table_list.tables[i].pointer) { |
294 | if ((acpi_gbl_root_table_list.tables[i]. | 293 | if ((acpi_gbl_root_table_list.tables[i].flags & |
295 | flags & ACPI_TABLE_ORIGIN_MASK) == | 294 | ACPI_TABLE_ORIGIN_MASK) == |
296 | ACPI_TABLE_ORIGIN_MAPPED) { | 295 | ACPI_TABLE_ORIGIN_MAPPED) { |
297 | header = | 296 | header = |
298 | acpi_os_map_memory(acpi_gbl_root_table_list. | 297 | acpi_os_map_memory(acpi_gbl_root_table_list. |
@@ -323,7 +322,7 @@ acpi_get_table_header(char *signature, | |||
323 | 322 | ||
324 | ACPI_EXPORT_SYMBOL(acpi_get_table_header) | 323 | ACPI_EXPORT_SYMBOL(acpi_get_table_header) |
325 | 324 | ||
326 | /****************************************************************************** | 325 | /******************************************************************************* |
327 | * | 326 | * |
328 | * FUNCTION: acpi_unload_table_id | 327 | * FUNCTION: acpi_unload_table_id |
329 | * | 328 | * |
@@ -374,7 +373,7 @@ ACPI_EXPORT_SYMBOL(acpi_unload_table_id) | |||
374 | * | 373 | * |
375 | * DESCRIPTION: Finds and verifies an ACPI table. | 374 | * DESCRIPTION: Finds and verifies an ACPI table. |
376 | * | 375 | * |
377 | *****************************************************************************/ | 376 | ******************************************************************************/ |
378 | acpi_status | 377 | acpi_status |
379 | acpi_get_table(char *signature, | 378 | acpi_get_table(char *signature, |
380 | u32 instance, struct acpi_table_header **out_table) | 379 | u32 instance, struct acpi_table_header **out_table) |
@@ -389,9 +388,8 @@ acpi_get_table(char *signature, | |||
389 | return (AE_BAD_PARAMETER); | 388 | return (AE_BAD_PARAMETER); |
390 | } | 389 | } |
391 | 390 | ||
392 | /* | 391 | /* Walk the root table list */ |
393 | * Walk the root table list | 392 | |
394 | */ | ||
395 | for (i = 0, j = 0; i < acpi_gbl_root_table_list.count; i++) { | 393 | for (i = 0, j = 0; i < acpi_gbl_root_table_list.count; i++) { |
396 | if (!ACPI_COMPARE_NAME | 394 | if (!ACPI_COMPARE_NAME |
397 | (&(acpi_gbl_root_table_list.tables[i].signature), | 395 | (&(acpi_gbl_root_table_list.tables[i].signature), |
@@ -526,17 +524,15 @@ static acpi_status acpi_tb_load_namespace(void) | |||
526 | 524 | ||
527 | (void)acpi_ut_release_mutex(ACPI_MTX_TABLES); | 525 | (void)acpi_ut_release_mutex(ACPI_MTX_TABLES); |
528 | 526 | ||
529 | /* | 527 | /* Load and parse tables */ |
530 | * Load and parse tables. | 528 | |
531 | */ | ||
532 | status = acpi_ns_load_table(ACPI_TABLE_INDEX_DSDT, acpi_gbl_root_node); | 529 | status = acpi_ns_load_table(ACPI_TABLE_INDEX_DSDT, acpi_gbl_root_node); |
533 | if (ACPI_FAILURE(status)) { | 530 | if (ACPI_FAILURE(status)) { |
534 | return_ACPI_STATUS(status); | 531 | return_ACPI_STATUS(status); |
535 | } | 532 | } |
536 | 533 | ||
537 | /* | 534 | /* Load any SSDT or PSDT tables. Note: Loop leaves tables locked */ |
538 | * Load any SSDT or PSDT tables. Note: Loop leaves tables locked | 535 | |
539 | */ | ||
540 | (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); | 536 | (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); |
541 | for (i = 0; i < acpi_gbl_root_table_list.count; ++i) { | 537 | for (i = 0; i < acpi_gbl_root_table_list.count; ++i) { |
542 | if ((!ACPI_COMPARE_NAME | 538 | if ((!ACPI_COMPARE_NAME |
@@ -589,9 +585,8 @@ acpi_status acpi_load_tables(void) | |||
589 | 585 | ||
590 | ACPI_FUNCTION_TRACE(acpi_load_tables); | 586 | ACPI_FUNCTION_TRACE(acpi_load_tables); |
591 | 587 | ||
592 | /* | 588 | /* Load the namespace from the tables */ |
593 | * Load the namespace from the tables | 589 | |
594 | */ | ||
595 | status = acpi_tb_load_namespace(); | 590 | status = acpi_tb_load_namespace(); |
596 | if (ACPI_FAILURE(status)) { | 591 | if (ACPI_FAILURE(status)) { |
597 | ACPI_EXCEPTION((AE_INFO, status, | 592 | ACPI_EXCEPTION((AE_INFO, status, |