ACPICA: Namespace: Rename acpi_gbl_reg_methods_enabled to acpi_gbl_namespace_initialized
authorLv Zheng <lv.zheng@intel.com>
Fri, 19 Feb 2016 06:17:22 +0000 (14:17 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Feb 2016 13:14:50 +0000 (14:14 +0100)
ACPICA commit 4be3b82cf45d324366ea8567102d5108c5ef47cb
ACPICA commit 19f84c249267fab0bfb138bd14d12510fb4faf24

The global variable actually means the availability of the namespace, and
control methods evaluations should happen after namespace readiness. Thus
this patch renames the global variable to reflect this logic. Lv Zheng.

Link: https://github.com/acpica/acpica/commit/4be3b82c
Link: https://github.com/acpica/acpica/commit/19f84c24
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/acglobal.h
drivers/acpi/acpica/evregion.c
drivers/acpi/acpica/nsinit.c
drivers/acpi/acpica/utxfinit.c

index 55c8197036f31634439bb363f7d6125ef44f08a4..51b073b68f161799119af908957b1254d7c68781 100644 (file)
@@ -165,7 +165,7 @@ ACPI_GLOBAL(u8, acpi_gbl_next_owner_id_offset);
 
 /* Initialization sequencing */
 
-ACPI_INIT_GLOBAL(u8, acpi_gbl_reg_methods_enabled, FALSE);
+ACPI_INIT_GLOBAL(u8, acpi_gbl_namespace_initialized, FALSE);
 
 /* Misc */
 
index 47092b4d633cca85f68e16962945bb2fe2164452..63924d1c737a0b303f999fa4de9f08cf5e12a89b 100644 (file)
@@ -600,7 +600,7 @@ acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function)
 
        if (region_obj2->extra.method_REG == NULL ||
            region_obj->region.handler == NULL ||
-           !acpi_gbl_reg_methods_enabled) {
+           !acpi_gbl_namespace_initialized) {
                return_ACPI_STATUS(AE_OK);
        }
 
index 3281dd83b2e8e1ae21dd11fd630f106afe061088..f029a3da67eb4991c53a8aa18786330f7a681a65 100644 (file)
@@ -136,7 +136,7 @@ acpi_status acpi_ns_initialize_objects(void)
 
 acpi_status acpi_ns_initialize_devices(u32 flags)
 {
-       acpi_status status;
+       acpi_status status = AE_OK;
        struct acpi_device_walk_info info;
 
        ACPI_FUNCTION_TRACE(ns_initialize_devices);
index 66d6f19fd6adabf2c3331fb9321ceab8570bbea0..d70649d3ac603507523c148633bf5b8044d564c0 100644 (file)
@@ -301,7 +301,7 @@ acpi_status __init acpi_initialize_objects(u32 flags)
                }
        }
 
-       acpi_gbl_reg_methods_enabled = TRUE;
+       acpi_gbl_namespace_initialized = TRUE;
 
        /*
         * Initialize all device/region objects in the namespace. This runs