summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMaksim Davydov <davydov-max@yandex-team.ru>2025-03-25 11:58:07 +0300
committerIngo Molnar <mingo@kernel.org>2025-03-25 12:16:50 +0300
commit0e1ff67d164be45e8ddfea5aaf5803224ede0805 (patch)
tree616042b07ae438046e060566dd05a85161ee9748 /tools/perf/scripts/python/check-perf-trace.py
parent2df0c02dab829dd89360d98a8a1abaa026ef5798 (diff)
downloadlinux-0e1ff67d164be45e8ddfea5aaf5803224ede0805.tar.xz
x86/split_lock: Simplify reenabling
When split_lock_mitigate is disabled, each CPU needs its own delayed_work structure. They are used to reenable split lock detection after its disabling. But delayed_work structure must be correctly initialized after its allocation. Current implementation uses deferred initialization that makes the split lock handler code unclear. The code can be simplified a bit if the initialization is moved to the appropriate initcall. sld_setup() is called before setup_per_cpu_areas(), thus it can't be used for this purpose, so introduce an independent initcall for the initialization. [ mingo: Simplified the 'work' assignment line a bit more. ] Signed-off-by: Maksim Davydov <davydov-max@yandex-team.ru> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20250325085807.171885-1-davydov-max@yandex-team.ru
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions