Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165202
b: refs/heads/master
c: 2f977b3
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Aug 28, 2009
1 parent 8d681ef commit a561a7f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 53e9387bdd8bfef6cffff2d2eb6bd28eca812682
refs/heads/master: 2f977b36e5f175e5126f280e7a94f0c53d1b1a16
22 changes: 4 additions & 18 deletions trunk/drivers/acpi/acpica/utinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,33 +99,19 @@ static void acpi_ut_terminate(void)
*
* FUNCTION: acpi_ut_subsystem_shutdown
*
* PARAMETERS: none
* PARAMETERS: None
*
* RETURN: none
* RETURN: None
*
* DESCRIPTION: Shutdown the various subsystems. Don't delete the mutex
* objects here -- because the AML debugger may be still running.
* DESCRIPTION: Shutdown the various components. Do not delete the mutex
* objects here, because the AML debugger may be still running.
*
******************************************************************************/

void acpi_ut_subsystem_shutdown(void)
{

ACPI_FUNCTION_TRACE(ut_subsystem_shutdown);

/* Just exit if subsystem is already shutdown */

if (acpi_gbl_shutdown) {
ACPI_ERROR((AE_INFO, "ACPI Subsystem is already terminated"));
return_VOID;
}

/* Subsystem appears active, go ahead and shut it down */

acpi_gbl_shutdown = TRUE;
acpi_gbl_startup_flags = 0;
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Shutting down ACPI Subsystem\n"));

#ifndef ACPI_ASL_COMPILER

/* Close the acpi_event Handling */
Expand Down
16 changes: 15 additions & 1 deletion trunk/drivers/acpi/acpica/utxface.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ ACPI_EXPORT_SYMBOL(acpi_initialize_objects)
*
* RETURN: Status
*
* DESCRIPTION: Shutdown the ACPI subsystem. Release all resources.
* DESCRIPTION: Shutdown the ACPICA subsystem and release all resources.
*
******************************************************************************/
acpi_status acpi_terminate(void)
Expand All @@ -327,6 +327,19 @@ acpi_status acpi_terminate(void)

ACPI_FUNCTION_TRACE(acpi_terminate);

/* Just exit if subsystem is already shutdown */

if (acpi_gbl_shutdown) {
ACPI_ERROR((AE_INFO, "ACPI Subsystem is already terminated"));
return_ACPI_STATUS(AE_OK);
}

/* Subsystem appears active, go ahead and shut it down */

acpi_gbl_shutdown = TRUE;
acpi_gbl_startup_flags = 0;
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Shutting down ACPI Subsystem\n"));

/* Terminate the AML Debugger if present */

ACPI_DEBUGGER_EXEC(acpi_gbl_db_terminate_threads = TRUE);
Expand All @@ -353,6 +366,7 @@ acpi_status acpi_terminate(void)
}

ACPI_EXPORT_SYMBOL(acpi_terminate)

#ifndef ACPI_ASL_COMPILER
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
Expand Down

0 comments on commit a561a7f

Please sign in to comment.