mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
d88e4cb671
commit
948246f70a
2 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue