sched: Simplify tg_set_cfs_bandwidth()

[ Upstream commit 6fb4546061 ]

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: 1aa09b9379 ("powercap: intel_rapl: Fix locking in TPMI RAPL")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Peter Zijlstra 2023-06-09 20:45:16 +02:00 • committed by Greg Kroah-Hartman
commit c4c2f7e672
2 changed files with 21 additions and 19 deletions