summaryrefslogtreecommitdiffstats
path: root/kernel/freezer.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-11-21 21:32:25 +0100
committerTejun Heo <tj@kernel.org>2011-11-21 21:32:25 +0100
commit948246f70a811c872b9d93bb4a8ab5823c4c79e0 (patch)
tree385fee0509ba5e05f1f651c8b86b7b56a0518163 /kernel/freezer.c
parentfreezer: remove now unused TIF_FREEZE (diff)
downloadlinux-948246f70a811c872b9d93bb4a8ab5823c4c79e0.tar.xz
linux-948246f70a811c872b9d93bb4a8ab5823c4c79e0.zip
freezer: remove should_send_signal() and update frozen()
should_send_signal() is only used in freezer.c. Exporting them only increases chance of abuse. Open code the two users and remove it. Update frozen() to return bool. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/freezer.c')
-rw-r--r--kernel/freezer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/freezer.c b/kernel/freezer.c
index f53cd5aa5b2e..95a123844241 100644
--- a/kernel/freezer.c
+++ b/kernel/freezer.c
@@ -132,7 +132,7 @@ bool freeze_task(struct task_struct *p, bool sig_only)
return false;
}
- if (should_send_signal(p)) {
+ if (!(p->flags & PF_FREEZER_NOSIG)) {
fake_signal_wake_up(p);
/*
* fake_signal_wake_up() goes through p's scheduler