mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
freezer: remove unused @sig_only from freeze_task()
After "freezer: make freezing() test freeze conditions in effect instead of TIF_FREEZE", freezing() returns authoritative answer on whether the current task should freeze or not and freeze_task() doesn't need or use @sig_only. Remove it. While at it, rewrite function comment for freeze_task() and rename @sig_only to @user_only in try_to_freeze_tasks(). This patch doesn't cause any functional change. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Oleg Nesterov <oleg@redhat.com>
This commit is contained in:
parent
37ad8aca94
commit
839e3407d9
4 changed files with 16 additions and 19 deletions
|
@ -48,7 +48,7 @@ static inline bool try_to_freeze(void)
|
|||
return __refrigerator(false);
|
||||
}
|
||||
|
||||
extern bool freeze_task(struct task_struct *p, bool sig_only);
|
||||
extern bool freeze_task(struct task_struct *p);
|
||||
extern bool __set_freezable(bool with_signal);
|
||||
|
||||
#ifdef CONFIG_CGROUP_FREEZER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue