diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2023-11-23 23:34:22 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-11-30 22:25:09 +0300 |
commit | 9d1c8f21533729b6ead531b676fa7d327cf00819 (patch) | |
tree | 0881d03fa28d8c2555adcf30a0e6bf0ed50d3deb /tools/perf/scripts/python/gecko.py | |
parent | 4604c052b84d66407f5e68045a1939685eac401e (diff) | |
download | linux-9d1c8f21533729b6ead531b676fa7d327cf00819.tar.xz |
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 <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20231123203605.3474745-1-ubizjak@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions