aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2023-11-23 20:34:22 +0000
committerIngo Molnar <[email protected]>2023-11-30 19:25:09 +0000
commit9d1c8f21533729b6ead531b676fa7d327cf00819 (patch)
tree0881d03fa28d8c2555adcf30a0e6bf0ed50d3deb /scripts/generate_rust_target.rs
parentx86/percpu: Declare const_pcpu_hot as extern const variable (diff)
downloadkernel-9d1c8f21533729b6ead531b676fa7d327cf00819.tar.gz
kernel-9d1c8f21533729b6ead531b676fa7d327cf00819.zip
x86/smp: Move the call to smp_processor_id() after the early exit in native_stop_other_cpus()
Improve code generation in native_stop_other_cpus() a tiny bit: smp_processor_id() accesses a per-CPU variable, so the compiler is not able to move the call after the early exit on its own. Also rename the "cpu" variable to a more descriptive "this_cpu", and use 'cpu' as a separate iterator variable later in the function. 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