diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-03-26 18:55:06 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-05-12 11:43:31 +0200 |
commit | 6e33cad0af49336952e5541464bd02f5b5fd433e (patch) | |
tree | 64b10f6b66b84f1f2da4b86beb0a9f89cff96a66 /kernel/fork.c | |
parent | sched: Migration changes for core scheduling (diff) | |
download | linux-6e33cad0af49336952e5541464bd02f5b5fd433e.tar.xz linux-6e33cad0af49336952e5541464bd02f5b5fd433e.zip |
sched: Trivial core scheduling cookie management
In order to not have to use pid_struct, create a new, smaller,
structure to manage task cookies for core scheduling.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Don Hiatt <dhiatt@digitalocean.com>
Tested-by: Hongyu Ning <hongyu.ning@linux.intel.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210422123308.919768100@infradead.org
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index dc06afd725cb..d16c60c9daca 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -742,6 +742,7 @@ void __put_task_struct(struct task_struct *tsk) exit_creds(tsk); delayacct_tsk_free(tsk); put_signal_struct(tsk->signal); + sched_core_free(tsk); if (!profile_handoff_task(tsk)) free_task(tsk); |