diff options
author | Tejun Heo <tj@kernel.org> | 2011-11-21 12:32:25 -0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-11-21 12:32:25 -0800 |
commit | 948246f70a811c872b9d93bb4a8ab5823c4c79e0 (patch) | |
tree | 385fee0509ba5e05f1f651c8b86b7b56a0518163 /include | |
parent | d88e4cb67197d007fb778d62fe17360e970d5bfa (diff) | |
download | linux-stable-948246f70a811c872b9d93bb4a8ab5823c4c79e0.tar.gz linux-stable-948246f70a811c872b9d93bb4a8ab5823c4c79e0.tar.bz2 linux-stable-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 'include')
-rw-r--r-- | include/linux/freezer.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 8e29f2b7ce11..3d50913d39d0 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h @@ -15,7 +15,7 @@ extern bool pm_nosig_freezing; /* PM nosig freezing in effect */ /* * Check if a process has been frozen */ -static inline int frozen(struct task_struct *p) +static inline bool frozen(struct task_struct *p) { return p->flags & PF_FROZEN; } @@ -32,11 +32,6 @@ static inline bool freezing(struct task_struct *p) return freezing_slow_path(p); } -static inline bool should_send_signal(struct task_struct *p) -{ - return !(p->flags & PF_FREEZER_NOSIG); -} - /* Takes and releases task alloc lock using task_lock() */ extern void __thaw_task(struct task_struct *t); @@ -166,7 +161,7 @@ static inline void set_freezable_with_signal(void) __retval; \ }) #else /* !CONFIG_FREEZER */ -static inline int frozen(struct task_struct *p) { return 0; } +static inline bool frozen(struct task_struct *p) { return false; } static inline bool freezing(struct task_struct *p) { return false; } static inline bool __refrigerator(bool check_kthr_stop) { return false; } |