aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/tbutils.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2010-04-26 23:16:14 -0400
committerLen Brown <len.brown@intel.com>2010-05-06 03:05:54 -0400
commitb9ee2043096b02e5da8c62f9a8a8f2e172b3606b (patch)
treeaa0ad908c72d46f2eae8252aed80f0ed84cbf6ec /drivers/acpi/acpica/tbutils.c
parente4eb0450c5d61dd0064ef0904d74088d35284ae2 (diff)
ACPICA: Clarify/rename some root table descriptor fields
Original fields were not very descriptive and led to maintenance problems. New fields should help to understand the existing code. 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/acpica/tbutils.c')
-rw-r--r--drivers/acpi/acpica/tbutils.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/acpi/acpica/tbutils.c b/drivers/acpi/acpica/tbutils.c
index a9b105fc2e55..34f9c2bc5e1f 100644
--- a/drivers/acpi/acpica/tbutils.c
+++ b/drivers/acpi/acpica/tbutils.c
@@ -158,7 +158,7 @@ acpi_status acpi_tb_initialize_facs(void)
158u8 acpi_tb_tables_loaded(void) 158u8 acpi_tb_tables_loaded(void)
159{ 159{
160 160
161 if (acpi_gbl_root_table_list.count >= 3) { 161 if (acpi_gbl_root_table_list.current_table_count >= 3) {
162 return (TRUE); 162 return (TRUE);
163 } 163 }
164 164
@@ -707,14 +707,14 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address)
707 */ 707 */
708 table_entry = 708 table_entry =
709 ACPI_CAST_PTR(u8, table) + sizeof(struct acpi_table_header); 709 ACPI_CAST_PTR(u8, table) + sizeof(struct acpi_table_header);
710 acpi_gbl_root_table_list.count = 2; 710 acpi_gbl_root_table_list.current_table_count = 2;
711 711
712 /* 712 /*
713 * Initialize the root table array from the RSDT/XSDT 713 * Initialize the root table array from the RSDT/XSDT
714 */ 714 */
715 for (i = 0; i < table_count; i++) { 715 for (i = 0; i < table_count; i++) {
716 if (acpi_gbl_root_table_list.count >= 716 if (acpi_gbl_root_table_list.current_table_count >=
717 acpi_gbl_root_table_list.size) { 717 acpi_gbl_root_table_list.max_table_count) {
718 718
719 /* There is no more room in the root table array, attempt resize */ 719 /* There is no more room in the root table array, attempt resize */
720 720
@@ -724,19 +724,20 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address)
724 "Truncating %u table entries!", 724 "Truncating %u table entries!",
725 (unsigned) (table_count - 725 (unsigned) (table_count -
726 (acpi_gbl_root_table_list. 726 (acpi_gbl_root_table_list.
727 count - 2)))); 727 current_table_count -
728 2))));
728 break; 729 break;
729 } 730 }
730 } 731 }
731 732
732 /* Get the table physical address (32-bit for RSDT, 64-bit for XSDT) */ 733 /* Get the table physical address (32-bit for RSDT, 64-bit for XSDT) */
733 734
734 acpi_gbl_root_table_list.tables[acpi_gbl_root_table_list.count]. 735 acpi_gbl_root_table_list.tables[acpi_gbl_root_table_list.
735 address = 736 current_table_count].address =
736 acpi_tb_get_root_table_entry(table_entry, table_entry_size); 737 acpi_tb_get_root_table_entry(table_entry, table_entry_size);
737 738
738 table_entry += table_entry_size; 739 table_entry += table_entry_size;
739 acpi_gbl_root_table_list.count++; 740 acpi_gbl_root_table_list.current_table_count++;
740 } 741 }
741 742
742 /* 743 /*
@@ -749,7 +750,7 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address)
749 * Complete the initialization of the root table array by examining 750 * Complete the initialization of the root table array by examining
750 * the header of each table 751 * the header of each table
751 */ 752 */
752 for (i = 2; i < acpi_gbl_root_table_list.count; i++) { 753 for (i = 2; i < acpi_gbl_root_table_list.current_table_count; i++) {
753 acpi_tb_install_table(acpi_gbl_root_table_list.tables[i]. 754 acpi_tb_install_table(acpi_gbl_root_table_list.tables[i].
754 address, NULL, i); 755 address, NULL, i);
755 756