]> Gentwo Git Trees - linux/.git/commit
sched/uclamp: Use the uclamp_is_used() helper instead of open-coding it
authorXuewen Yan <xuewen.yan@unisoc.com>
Wed, 19 Feb 2025 09:37:46 +0000 (17:37 +0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 15 Mar 2025 09:26:37 +0000 (10:26 +0100)
commit5fca5a4cf97313dd2f5eae29624ceb1dc48f258a
tree5dcd03bc8abfd164b9d1c22ef408060e29bc16e5
parente6644c967d3c076969336bd8a9b85ffb45f677f7
sched/uclamp: Use the uclamp_is_used() helper instead of open-coding it

Don't open-code static_branch_unlikely(&sched_uclamp_used), we have
the uclamp_is_used() wrapper around it.

[ mingo: Clean up the changelog ]

Signed-off-by: Xuewen Yan <xuewen.yan@unisoc.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Hongyan Xia <hongyan.xia2@arm.com>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20250219093747.2612-1-xuewen.yan@unisoc.com
kernel/sched/core.c
kernel/sched/sched.h