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
nexedi
linux
Commits
fd07eb09
Commit
fd07eb09
authored
Sep 14, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Convert list_for_each()/list_entry() to list_for_each_entry()
parent
2ad5451b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
arch/arm/kernel/apm.c
arch/arm/kernel/apm.c
+4
-8
No files found.
arch/arm/kernel/apm.c
View file @
fd07eb09
...
...
@@ -153,12 +153,10 @@ static void queue_event_one_user(struct apm_user *as, apm_event_t event)
static
void
queue_event
(
apm_event_t
event
,
struct
apm_user
*
sender
)
{
struct
list_head
*
l
;
struct
apm_user
*
as
;
spin_lock
(
&
user_list_lock
);
list_for_each
(
l
,
&
apm_user_list
)
{
struct
apm_user
*
as
=
list_entry
(
l
,
struct
apm_user
,
list
);
list_for_each_entry
(
as
,
&
apm_user_list
,
list
)
{
if
(
as
!=
sender
&&
as
->
reader
)
queue_event_one_user
(
as
,
event
);
}
...
...
@@ -168,7 +166,7 @@ static void queue_event(apm_event_t event, struct apm_user *sender)
static
int
apm_suspend
(
void
)
{
struct
list_head
*
l
;
struct
apm_user
*
as
;
int
err
=
pm_suspend
(
PM_SUSPEND_MEM
);
/*
...
...
@@ -181,9 +179,7 @@ static int apm_suspend(void)
* Finally, wake up anyone who is sleeping on the suspend.
*/
spin_lock
(
&
user_list_lock
);
list_for_each
(
l
,
&
apm_user_list
)
{
struct
apm_user
*
as
=
list_entry
(
l
,
struct
apm_user
,
list
);
list_for_each_entry
(
as
,
&
apm_user_list
,
list
)
{
as
->
suspend_result
=
err
;
as
->
suspend_wait
=
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