diff options
author | Maksim Davydov <davydov-max@yandex-team.ru> | 2025-03-25 11:58:07 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 12:16:50 +0300 |
commit | 0e1ff67d164be45e8ddfea5aaf5803224ede0805 (patch) | |
tree | 616042b07ae438046e060566dd05a85161ee9748 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 2df0c02dab829dd89360d98a8a1abaa026ef5798 (diff) | |
download | linux-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/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions