aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2020-04-26 07:59:55 -0500
committerEric W. Biederman <ebiederm@xmission.com>2020-04-28 16:54:25 -0500
commitbbd40fc4816d5329a89397206ece9f1763787a88 (patch)
tree4f9bc099d5b952496b53420da532be15efb63acc /include/linux/sched
parentexec: Remove BUG_ON(has_group_leader_pid) (diff)
downloadlinux-dev-bbd40fc4816d5329a89397206ece9f1763787a88.tar.xz
linux-dev-bbd40fc4816d5329a89397206ece9f1763787a88.zip
signal: Remove has_group_leader_pid
After the introduction of exchange_tids has_group_leader_pid is equivalent to thread_group_leader. After the last couple of cleanups has_group_leader_pid has no more callers. So remove the now unused and redundant has_group_leader_pid. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/sched')
-rw-r--r--include/linux/sched/signal.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h
index 3e5b090c16d4..0ee5e696c5d8 100644
--- a/include/linux/sched/signal.h
+++ b/include/linux/sched/signal.h
@@ -654,17 +654,6 @@ static inline bool thread_group_leader(struct task_struct *p)
return p->exit_signal >= 0;
}
-/* Do to the insanities of de_thread it is possible for a process
- * to have the pid of the thread group leader without actually being
- * the thread group leader. For iteration through the pids in proc
- * all we care about is that we have a task with the appropriate
- * pid, we don't actually care if we have the right task.
- */
-static inline bool has_group_leader_pid(struct task_struct *p)
-{
- return task_pid(p) == task_tgid(p);
-}
-
static inline
bool same_thread_group(struct task_struct *p1, struct task_struct *p2)
{