aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_driver_platform.rs
diff options
context:
space:
mode:
authorMaksim Davydov <[email protected]>2025-03-25 08:58:07 +0000
committerIngo Molnar <[email protected]>2025-03-25 09:16:50 +0000
commit0e1ff67d164be45e8ddfea5aaf5803224ede0805 (patch)
tree616042b07ae438046e060566dd05a85161ee9748 /samples/rust/rust_driver_platform.rs
parentx86 boot build: make git ignore stale 'tools' directory (diff)
downloadkernel-0e1ff67d164be45e8ddfea5aaf5803224ede0805.tar.gz
kernel-0e1ff67d164be45e8ddfea5aaf5803224ede0805.zip
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions