Apply Kochi Takayoshi's cleanup of the ACPI enable/disable code.

date	2002.08.15.01.37.00;	author agrover;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:23:57 +00:00
parent e3ecac9cdc
commit afbefe6064

View File

@ -1,7 +1,7 @@
/****************************************************************************** /******************************************************************************
* *
* Module Name: utxface - External interfaces for "global" ACPI functions * Module Name: utxface - External interfaces for "global" ACPI functions
* $Revision: 1.97 $ * $Revision: 1.100 $
* *
*****************************************************************************/ *****************************************************************************/
@ -260,6 +260,8 @@ AcpiEnableSubsystem (
{ {
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Going into ACPI mode\n")); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Going into ACPI mode\n"));
AcpiGbl_OriginalMode = AcpiHwGetMode();
Status = AcpiEnable (); Status = AcpiEnable ();
if (ACPI_FAILURE (Status)) if (ACPI_FAILURE (Status))
{ {
@ -309,7 +311,7 @@ AcpiEnableSubsystem (
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Completes namespace initialization by initializing device * DESCRIPTION: Completes namespace initialization by initializing device
* objects and executing AML code for Regions, buffers, etc. * objects and executing AML code for Regions, buffers, etc.
* *
******************************************************************************/ ******************************************************************************/
@ -401,7 +403,7 @@ AcpiTerminate (void)
AcpiUtMutexTerminate (); AcpiUtMutexTerminate ();
#ifdef ENABLE_DEBUGGER #ifdef ACPI_DEBUGGER
/* Shut down the debugger */ /* Shut down the debugger */