Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
20b499aa
Commit
20b499aa
authored
Jul 10, 2006
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull bugzilla-6687 into test branch
parents
dece75b3
ab8aa06a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
drivers/acpi/executer/exmutex.c
drivers/acpi/executer/exmutex.c
+2
-2
drivers/acpi/utilities/utdebug.c
drivers/acpi/utilities/utdebug.c
+2
-2
drivers/acpi/utilities/utmutex.c
drivers/acpi/utilities/utmutex.c
+4
-4
include/acpi/aclocal.h
include/acpi/aclocal.h
+1
-1
include/acpi/platform/aclinux.h
include/acpi/platform/aclinux.h
+3
-2
No files found.
drivers/acpi/executer/exmutex.c
View file @
20b499aa
...
...
@@ -267,9 +267,9 @@ acpi_ex_release_mutex(union acpi_operand_object *obj_desc,
&&
(
obj_desc
->
mutex
.
os_mutex
!=
ACPI_GLOBAL_LOCK
))
{
ACPI_ERROR
((
AE_INFO
,
"Thread %X cannot release Mutex [%4.4s] acquired by thread %X"
,
walk_state
->
thread
->
thread_id
,
(
u32
)
walk_state
->
thread
->
thread_id
,
acpi_ut_get_node_name
(
obj_desc
->
mutex
.
node
),
obj_desc
->
mutex
.
owner_thread
->
thread_id
));
(
u32
)
obj_desc
->
mutex
.
owner_thread
->
thread_id
));
return_ACPI_STATUS
(
AE_AML_NOT_OWNER
);
}
...
...
drivers/acpi/utilities/utdebug.c
View file @
20b499aa
...
...
@@ -47,7 +47,7 @@
ACPI_MODULE_NAME
(
"utdebug"
)
#ifdef ACPI_DEBUG_OUTPUT
static
u32
acpi_gbl_prev_thread_id
=
0xFFFFFFFF
;
static
acpi_thread_id
acpi_gbl_prev_thread_id
;
static
char
*
acpi_gbl_fn_entry_str
=
"----Entry"
;
static
char
*
acpi_gbl_fn_exit_str
=
"----Exit-"
;
...
...
@@ -181,7 +181,7 @@ acpi_ut_debug_print(u32 requested_debug_level,
if
(
ACPI_LV_THREADS
&
acpi_dbg_level
)
{
acpi_os_printf
(
"
\n
**** Context Switch from TID %X to TID %X ****
\n\n
"
,
acpi_gbl_prev_thread_id
,
thread_id
);
(
u32
)
acpi_gbl_prev_thread_id
,
(
u32
)
thread_id
);
}
acpi_gbl_prev_thread_id
=
thread_id
;
...
...
drivers/acpi/utilities/utmutex.c
View file @
20b499aa
...
...
@@ -244,14 +244,14 @@ acpi_status acpi_ut_acquire_mutex(acpi_mutex_handle mutex_id)
ACPI_DEBUG_PRINT
((
ACPI_DB_MUTEX
,
"Thread %X attempting to acquire Mutex [%s]
\n
"
,
this_thread_id
,
acpi_ut_get_mutex_name
(
mutex_id
)));
(
u32
)
this_thread_id
,
acpi_ut_get_mutex_name
(
mutex_id
)));
status
=
acpi_os_acquire_mutex
(
acpi_gbl_mutex_info
[
mutex_id
].
mutex
,
ACPI_WAIT_FOREVER
);
if
(
ACPI_SUCCESS
(
status
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_MUTEX
,
"Thread %X acquired Mutex [%s]
\n
"
,
this_thread_id
,
(
u32
)
this_thread_id
,
acpi_ut_get_mutex_name
(
mutex_id
)));
acpi_gbl_mutex_info
[
mutex_id
].
use_count
++
;
...
...
@@ -259,7 +259,7 @@ acpi_status acpi_ut_acquire_mutex(acpi_mutex_handle mutex_id)
}
else
{
ACPI_EXCEPTION
((
AE_INFO
,
status
,
"Thread %X could not acquire Mutex [%X]"
,
this_thread_id
,
mutex_id
));
(
u32
)
this_thread_id
,
mutex_id
));
}
return
(
status
);
...
...
@@ -285,7 +285,7 @@ acpi_status acpi_ut_release_mutex(acpi_mutex_handle mutex_id)
this_thread_id
=
acpi_os_get_thread_id
();
ACPI_DEBUG_PRINT
((
ACPI_DB_MUTEX
,
"Thread %X releasing Mutex [%s]
\n
"
,
this_thread_id
,
"Thread %X releasing Mutex [%s]
\n
"
,
(
u32
)
this_thread_id
,
acpi_ut_get_mutex_name
(
mutex_id
)));
if
(
mutex_id
>
ACPI_MAX_MUTEX
)
{
...
...
include/acpi/aclocal.h
View file @
20b499aa
...
...
@@ -127,7 +127,7 @@ typedef u8 acpi_owner_id;
/* This Thread ID means that the mutex is not in use (unlocked) */
#define ACPI_MUTEX_NOT_ACQUIRED (
u32) -1
#define ACPI_MUTEX_NOT_ACQUIRED (
acpi_thread_id) 0
/* Table for the global mutexes */
...
...
include/acpi/platform/aclinux.h
View file @
20b499aa
...
...
@@ -59,6 +59,7 @@
#include <asm/acpi.h>
#include <linux/slab.h>
#include <linux/spinlock_types.h>
#include <asm/current.h>
/* Host-dependent types and defines */
...
...
@@ -100,8 +101,8 @@
#define acpi_cpu_flags unsigned long
#define acpi_thread_id
u32
#define acpi_thread_id
struct task_struct *
static
inline
acpi_thread_id
acpi_os_get_thread_id
(
void
)
{
return
0
;
}
static
inline
acpi_thread_id
acpi_os_get_thread_id
(
void
)
{
return
current
;
}
#endif
/* __ACLINUX_H__ */
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