diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2022-01-08 19:03:24 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2022-01-08 21:43:57 +0300 |
commit | 2873cd31a20c25b5e763b35e5fb886f0938c6dd5 (patch) | |
tree | 650b0e003b78aea00ad72be8117677fcc76a445f /include/linux/profile.h | |
parent | 2d4bcf886e42f0f4846a3d9bdc3a90d278903a2e (diff) | |
download | linux-2873cd31a20c25b5e763b35e5fb886f0938c6dd5.tar.xz |
exit: Remove profile_handoff_task
All profile_handoff_task does is notify the task_free_notifier chain.
The helpers task_handoff_register and task_handoff_unregister are used
to add and delete entries from that chain and are never called.
So remove the dead code and make it much easier to read and reason
about __put_task_struct.
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lkml.kernel.org/r/87fspyw6m0.fsf@email.froward.int.ebiederm.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/profile.h')
-rw-r--r-- | include/linux/profile.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/profile.h b/include/linux/profile.h index f7eb2b57d890..11db1ec516e2 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -61,14 +61,6 @@ static inline void profile_hit(int type, void *ip) struct task_struct; struct mm_struct; -/* task is dead, free task struct ? Returns 1 if - * the task was taken, 0 if the task should be freed. - */ -int profile_handoff_task(struct task_struct * task); - -int task_handoff_register(struct notifier_block * n); -int task_handoff_unregister(struct notifier_block * n); - #else #define prof_on 0 @@ -93,17 +85,6 @@ static inline void profile_hit(int type, void *ip) return; } -static inline int task_handoff_register(struct notifier_block * n) -{ - return -ENOSYS; -} - -static inline int task_handoff_unregister(struct notifier_block * n) -{ - return -ENOSYS; -} - -#define profile_handoff_task(a) (0) #endif /* CONFIG_PROFILING */ |