aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dump_stack.c
diff options
context:
space:
mode:
authorXuewen Yan <[email protected]>2025-02-19 09:37:47 +0000
committerIngo Molnar <[email protected]>2025-03-15 09:28:50 +0000
commit4bc45824149ea83a1e293c674e7f542b8127afb6 (patch)
treee8ca4033b573732b1c1d096528cb802632d6e938 /lib/dump_stack.c
parentsched/uclamp: Use the uclamp_is_used() helper instead of open-coding it (diff)
downloadkernel-4bc45824149ea83a1e293c674e7f542b8127afb6.tar.gz
kernel-4bc45824149ea83a1e293c674e7f542b8127afb6.zip
sched/uclamp: Optimize sched_uclamp_used static key enabling
Repeat calls of static_branch_enable() to an already enabled static key introduce overhead, because it calls cpus_read_lock(). Users may frequently set the uclamp value of tasks, triggering the repeat enabling of the sched_uclamp_used static key. Optimize this and avoid repeat calls to static_branch_enable() by checking whether it's enabled already. [ mingo: Rewrote the changelog for legibility ] Signed-off-by: Xuewen Yan <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Christian Loehle <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions