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
6d91e54d
Commit
6d91e54d
authored
Sep 20, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
3e5ef0c6
efb4cd11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
arch/arm/kernel/apm.c
arch/arm/kernel/apm.c
+10
-2
No files found.
arch/arm/kernel/apm.c
View file @
6d91e54d
...
@@ -202,7 +202,7 @@ static void apm_suspend(void)
...
@@ -202,7 +202,7 @@ static void apm_suspend(void)
}
}
up_read
(
&
user_list_lock
);
up_read
(
&
user_list_lock
);
wake_up
_interruptible
(
&
apm_suspend_waitqueue
);
wake_up
(
&
apm_suspend_waitqueue
);
}
}
static
ssize_t
apm_read
(
struct
file
*
fp
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
static
ssize_t
apm_read
(
struct
file
*
fp
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
...
@@ -306,7 +306,15 @@ apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg)
...
@@ -306,7 +306,15 @@ apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg)
flags
=
current
->
flags
;
flags
=
current
->
flags
;
current
->
flags
|=
PF_NOFREEZE
;
current
->
flags
|=
PF_NOFREEZE
;
wait_event_interruptible
(
apm_suspend_waitqueue
,
/*
* Note: do not allow a thread which is acking the suspend
* to escape until the resume is complete.
*/
if
(
as
->
suspend_state
==
SUSPEND_ACKED
)
wait_event
(
apm_suspend_waitqueue
,
as
->
suspend_state
==
SUSPEND_DONE
);
else
wait_event_interruptible
(
apm_suspend_waitqueue
,
as
->
suspend_state
==
SUSPEND_DONE
);
as
->
suspend_state
==
SUSPEND_DONE
);
current
->
flags
=
flags
;
current
->
flags
=
flags
;
...
...
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