aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-11-23 20:34:23 +0000
committerIngo Molnar <[email protected]>2023-11-30 19:25:09 +0000
commit9e9d673b2c84719937db5d6ab1d8cbcd7d45e974 (patch)
treea258dea9e23cb10d51a214f04b4d03ef019aa0dc /scripts/generate_rust_target.rs
parentx86/smp: Move the call to smp_processor_id() after the early exit in native_s... (diff)
downloadkernel-9e9d673b2c84719937db5d6ab1d8cbcd7d45e974.tar.gz
kernel-9e9d673b2c84719937db5d6ab1d8cbcd7d45e974.zip
x86/smp: Use atomic_try_cmpxchg in native_stop_other_cpus()
Use atomic_try_cmpxchg() instead of atomic_cmpxchg(*ptr, old, new) == old. X86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after the CMPXCHG. Tested by building a native Fedora-38 kernel and rebooting a 12-way SMP system using "shutdown -r" command some 100 times. No functional change intended. Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions