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
d2f60e5f
Commit
d2f60e5f
authored
Dec 06, 2007
by
Matthew Wilcox
Committed by
Matthew Wilcox
Dec 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
power: Use task_is_*
Signed-off-by:
Matthew Wilcox
<
willy@linux.intel.com
>
parent
e64d66c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kernel/power/process.c
kernel/power/process.c
+3
-3
No files found.
kernel/power/process.c
View file @
d2f60e5f
...
...
@@ -86,9 +86,9 @@ static void fake_signal_wake_up(struct task_struct *p, int resume)
static
void
send_fake_signal
(
struct
task_struct
*
p
)
{
if
(
p
->
state
==
TASK_STOPPED
)
if
(
task_is_stopped
(
p
)
)
force_sig_specific
(
SIGSTOP
,
p
);
fake_signal_wake_up
(
p
,
p
->
state
==
TASK_STOPPED
);
fake_signal_wake_up
(
p
,
task_is_stopped
(
p
)
);
}
static
int
has_mm
(
struct
task_struct
*
p
)
...
...
@@ -182,7 +182,7 @@ static int try_to_freeze_tasks(int freeze_user_space)
if
(
frozen
(
p
)
||
!
freezeable
(
p
))
continue
;
if
(
p
->
state
==
TASK_TRACED
&&
frozen
(
p
->
parent
))
{
if
(
task_is_traced
(
p
)
&&
frozen
(
p
->
parent
))
{
cancel_freezing
(
p
);
continue
;
}
...
...
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