]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/smt: Introduce sched_smt_present_inc/dec() helper
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 3 Jul 2024 03:16:07 +0000 (11:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Aug 2024 03:45:47 +0000 (05:45 +0200)
commit5c66a9672c0d8ecd074ae30272ebcfe3748b4017
tree86a2bd0946f8b53846f1505200808785add68885
parentca7d00c5656d1791e28369919e3e10febe9c3b16
sched/smt: Introduce sched_smt_present_inc/dec() helper

commit 31b164e2e4af84d08d2498083676e7eeaa102493 upstream.

Introduce sched_smt_present_inc/dec() helper, so it can be called
in normal or error path simply. No functional changed.

Cc: stable@kernel.org
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240703031610.587047-2-yangyingliang@huaweicloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sched/core.c