Skip to content

Commit

Permalink
Namespace: Rename AcpiGbl_RegMethodsEnabled to AcpiGbl_NamespaceIniti…
Browse files Browse the repository at this point in the history
…alized

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.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
  • Loading branch information
Lv Zheng committed Feb 2, 2016
1 parent 8ae25b8 commit 4be3b82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/components/events/evregion.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ AcpiEvExecuteRegMethod (

if (RegionObj2->Extra.Method_REG == NULL ||
RegionObj->Region.Handler == NULL ||
!AcpiGbl_RegMethodsEnabled)
!AcpiGbl_NamespaceInitialized)
{
return_ACPI_STATUS (AE_OK);
}
Expand Down
2 changes: 1 addition & 1 deletion source/components/utilities/utxfinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ AcpiInitializeObjects (
}
}

AcpiGbl_RegMethodsEnabled = TRUE;
AcpiGbl_NamespaceInitialized = TRUE;

/*
* Initialize all device/region objects in the namespace. This runs
Expand Down
2 changes: 1 addition & 1 deletion source/include/acglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ ACPI_GLOBAL (UINT8, AcpiGbl_NextOwnerIdOffset);

/* Initialization sequencing */

ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_RegMethodsEnabled, FALSE);
ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_NamespaceInitialized, FALSE);

/* Misc */

Expand Down

0 comments on commit 4be3b82

Please sign in to comment.