diff options
| author | Maksim Davydov <[email protected]> | 2025-03-25 08:58:07 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-25 09:16:50 +0000 |
| commit | 0e1ff67d164be45e8ddfea5aaf5803224ede0805 (patch) | |
| tree | 616042b07ae438046e060566dd05a85161ee9748 /samples/rust/rust_driver_platform.rs | |
| parent | x86 boot build: make git ignore stale 'tools' directory (diff) | |
| download | kernel-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
