]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched_ext: Factor out local_dsq_post_enq() from dispatch_enqueue()
authorTejun Heo <tj@kernel.org>
Fri, 2 Jan 2026 02:01:16 +0000 (21:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:58 +0000 (10:14 +0100)
commit44273abc2fea0134de4c7fd9807a7ded59511ae7
tree3416276a83f1d1e59e4077395371fbda68872b7c
parenta3b7eb67225c486a2da357c5db3e386f4e64bcde
sched_ext: Factor out local_dsq_post_enq() from dispatch_enqueue()

[ Upstream commit 530b6637c79e728d58f1d9b66bd4acf4b735b86d ]

Factor out local_dsq_post_enq() which performs post-enqueue handling for
local DSQs - triggering resched_curr() if SCX_ENQ_PREEMPT is specified or if
the current CPU is idle. No functional change.

This will be used by the next patch to fix move_local_task_to_local_dsq().

Cc: stable@vger.kernel.org # v6.12+
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sched/ext.c