aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/freezer.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-11-21 15:32:25 -0500
committerTejun Heo <tj@kernel.org>2011-11-21 15:32:25 -0500
commit948246f70a811c872b9d93bb4a8ab5823c4c79e0 (patch)
tree385fee0509ba5e05f1f651c8b86b7b56a0518163 /kernel/freezer.c
parentd88e4cb67197d007fb778d62fe17360e970d5bfa (diff)
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)
132 return false; 132 return false;
133 } 133 }
134 134
135 if (should_send_signal(p)) { 135 if (!(p->flags & PF_FREEZER_NOSIG)) {
136 fake_signal_wake_up(p); 136 fake_signal_wake_up(p);
137 /* 137 /*
138 * fake_signal_wake_up() goes through p's scheduler 138 * fake_signal_wake_up() goes through p's scheduler