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
2554c41d
Commit
2554c41d
authored
Jul 28, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: Convert to anon_semaphore
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
dd4eadfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
drivers/acpi/osl.c
drivers/acpi/osl.c
+9
-9
No files found.
drivers/acpi/osl.c
View file @
2554c41d
...
...
@@ -808,14 +808,14 @@ void acpi_os_delete_lock(acpi_spinlock handle)
acpi_status
acpi_os_create_semaphore
(
u32
max_units
,
u32
initial_units
,
acpi_handle
*
handle
)
{
struct
semaphore
*
sem
=
NULL
;
struct
anon_
semaphore
*
sem
=
NULL
;
sem
=
acpi_os_allocate
(
sizeof
(
struct
semaphore
));
sem
=
acpi_os_allocate
(
sizeof
(
struct
anon_
semaphore
));
if
(
!
sem
)
return
AE_NO_MEMORY
;
memset
(
sem
,
0
,
sizeof
(
struct
semaphore
));
memset
(
sem
,
0
,
sizeof
(
struct
anon_
semaphore
));
sema_init
(
sem
,
initial_units
);
anon_
sema_init
(
sem
,
initial_units
);
*
handle
=
(
acpi_handle
*
)
sem
;
...
...
@@ -834,7 +834,7 @@ acpi_os_create_semaphore(u32 max_units, u32 initial_units, acpi_handle * handle)
acpi_status
acpi_os_delete_semaphore
(
acpi_handle
handle
)
{
struct
semaphore
*
sem
=
(
struct
semaphore
*
)
handle
;
struct
anon_semaphore
*
sem
=
(
struct
anon_
semaphore
*
)
handle
;
if
(
!
sem
)
return
AE_BAD_PARAMETER
;
...
...
@@ -854,7 +854,7 @@ acpi_status acpi_os_delete_semaphore(acpi_handle handle)
acpi_status
acpi_os_wait_semaphore
(
acpi_handle
handle
,
u32
units
,
u16
timeout
)
{
acpi_status
status
=
AE_OK
;
struct
semaphore
*
sem
=
(
struct
semaphore
*
)
handle
;
struct
anon_semaphore
*
sem
=
(
struct
anon_
semaphore
*
)
handle
;
long
jiffies
;
int
ret
=
0
;
...
...
@@ -872,7 +872,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
else
jiffies
=
msecs_to_jiffies
(
timeout
);
ret
=
down_timeout
(
sem
,
jiffies
);
ret
=
anon_
down_timeout
(
sem
,
jiffies
);
if
(
ret
)
status
=
AE_TIME
;
...
...
@@ -895,7 +895,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
*/
acpi_status
acpi_os_signal_semaphore
(
acpi_handle
handle
,
u32
units
)
{
struct
semaphore
*
sem
=
(
struct
semaphore
*
)
handle
;
struct
anon_semaphore
*
sem
=
(
struct
anon_
semaphore
*
)
handle
;
if
(
!
sem
||
(
units
<
1
))
return
AE_BAD_PARAMETER
;
...
...
@@ -906,7 +906,7 @@ acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units)
ACPI_DEBUG_PRINT
((
ACPI_DB_MUTEX
,
"Signaling semaphore[%p|%d]
\n
"
,
handle
,
units
));
up
(
sem
);
anon_
up
(
sem
);
return
AE_OK
;
}
...
...
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