aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2017-06-14 19:37:30 -0700
committerIngo Molnar <mingo@kernel.org>2017-06-20 12:48:37 +0200
commitf11cc0760b8397e0d230122606421b6a96e9f869 (patch)
tree64bdf2282b63dff6d2a5203376d5c640cc234f28 /include/linux/sched
parentMerge branch 'WIP.sched/core' into sched/core (diff)
downloadlinux-dev-f11cc0760b8397e0d230122606421b6a96e9f869.tar.xz
linux-dev-f11cc0760b8397e0d230122606421b6a96e9f869.zip
sched/core: Drop the unused try_get_task_struct() helper function
This function was introduced by: 150593bf8693 ("sched/api: Introduce task_rcu_dereference() and try_get_task_struct()") ... to allow easier usage of task_rcu_dereference(), however no users were ever added. Drop the helper. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: dave@stgolabs.net Link: http://lkml.kernel.org/r/20170615023730.22827-1-dave@stgolabs.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched')
-rw-r--r--include/linux/sched/task.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index a978d7189cfd..f0f065c5afcf 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -95,8 +95,6 @@ static inline void put_task_struct(struct task_struct *t)
}
struct task_struct *task_rcu_dereference(struct task_struct **ptask);
-struct task_struct *try_get_task_struct(struct task_struct **ptask);
-
#ifdef CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT
extern int arch_task_struct_size __read_mostly;