Commit 82edfcdc authored by Andy Grover's avatar Andy Grover Committed by Linus Torvalds

[PATCH] ACPI cleanups [2/2]

This allows compilation without ACPI_DEBUG defined.
parent b6f11992
/******************************************************************************
*
* Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
* $Revision: 139 $
* $Revision: 140 $
*
*****************************************************************************/
......@@ -100,6 +100,8 @@ NATIVE_CHAR *
acpi_ut_get_mutex_name (
u32 mutex_id);
#endif
NATIVE_CHAR *
acpi_ut_get_type_name (
acpi_object_type type);
......@@ -108,9 +110,6 @@ NATIVE_CHAR *
acpi_ut_get_object_type_name (
acpi_operand_object *obj_desc);
#endif
NATIVE_CHAR *
acpi_ut_get_region_name (
u8 space_id);
......
/******************************************************************************
*
* Module Name: utglobal - Global variables for the ACPI subsystem
* $Revision: 162 $
* $Revision: 163 $
*
*****************************************************************************/
......@@ -427,40 +427,6 @@ acpi_ut_get_event_name (
}
#if defined(ACPI_DEBUG) || defined(ENABLE_DEBUGGER)
/*
* Strings and procedures used for debug only
*
*/
/*****************************************************************************
*
* FUNCTION: Acpi_ut_get_mutex_name
*
* PARAMETERS: None.
*
* RETURN: Status
*
* DESCRIPTION: Translate a mutex ID into a name string (Debug only)
*
****************************************************************************/
NATIVE_CHAR *
acpi_ut_get_mutex_name (
u32 mutex_id)
{
if (mutex_id > MAX_MTX)
{
return ("Invalid Mutex ID");
}
return (acpi_gbl_mutex_names[mutex_id]);
}
/*****************************************************************************
*
* FUNCTION: Acpi_ut_get_type_name
......@@ -555,6 +521,40 @@ acpi_ut_get_object_type_name (
}
#if defined(ACPI_DEBUG) || defined(ENABLE_DEBUGGER)
/*
* Strings and procedures used for debug only
*
*/
/*****************************************************************************
*
* FUNCTION: Acpi_ut_get_mutex_name
*
* PARAMETERS: None.
*
* RETURN: Status
*
* DESCRIPTION: Translate a mutex ID into a name string (Debug only)
*
****************************************************************************/
NATIVE_CHAR *
acpi_ut_get_mutex_name (
u32 mutex_id)
{
if (mutex_id > MAX_MTX)
{
return ("Invalid Mutex ID");
}
return (acpi_gbl_mutex_names[mutex_id]);
}
/* Various strings for future use */
#if 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment