Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
82edfcdc
Commit
82edfcdc
authored
Jun 11, 2002
by
Andy Grover
Committed by
Linus Torvalds
Jun 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ACPI cleanups [2/2]
This allows compilation without ACPI_DEBUG defined.
parent
b6f11992
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
39 deletions
+38
-39
drivers/acpi/include/acutils.h
drivers/acpi/include/acutils.h
+3
-4
drivers/acpi/utilities/utglobal.c
drivers/acpi/utilities/utglobal.c
+35
-35
No files found.
drivers/acpi/include/acutils.h
View file @
82edfcdc
/******************************************************************************
*
* Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
* $Revision: 1
39
$
* $Revision: 1
40
$
*
*****************************************************************************/
...
...
@@ -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
);
...
...
drivers/acpi/utilities/utglobal.c
View file @
82edfcdc
/******************************************************************************
*
* Module Name: utglobal - Global variables for the ACPI subsystem
* $Revision: 16
2
$
* $Revision: 16
3
$
*
*****************************************************************************/
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment