]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched: Simplify tg_set_cfs_bandwidth()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 9 Jun 2023 18:45:16 +0000 (20:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:18 +0000 (15:28 +0200)
commitc4c2f7e672e780be0bb867bd7e18ca53d16bc8da
treee7fae06ff49ce79c477c5fb5c52e65efd0f5e36b
parent0641908b906a133f1494c312a71f9fecbe2b6c78
sched: Simplify tg_set_cfs_bandwidth()

[ Upstream commit 6fb45460615358157a6d3c990e74f9c1395247e2 ]

Use guards to reduce gotos and simplify control flow.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Stable-dep-of: 1aa09b9379a7 ("powercap: intel_rapl: Fix locking in TPMI RAPL")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/cpu.h
kernel/sched/core.c