diff options
author | Uros Bizjak <[email protected]> | 2024-03-24 22:19:45 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2024-03-25 12:03:45 +0100 |
commit | b90169b42a6f49ff2fe2e4d4ed0bbcf17fb8f1bf (patch) | |
tree | e6c2f921f9803ac759ad9715ba9b4eb6c5379305 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4e5b0e8003df05983b6dabcdde7ff447d53b49d7 (diff) |
x86/percpu: Do not use this_cpu_read_stable_8() for 32-bit targets
this_cpu_read_stable() macro uses __pcpu_size_call_return()
that unconditionally calls this_cpu_read_stable_8() also for
32-bit targets. This usage is ivalid as it will result in the
generation of 64-bit MOVQ instruction on 32-bit targets via
percpu_stable_op() macro.
Since there is no generic support for this_cpu_read_stable_8() for
32-bit targets, the patch defines this_cpu_read_stable_8() to
BUILD_BUG() when CONFIG_X86_64 is not defined. This way, we are
sure that this_cpu_read_stable_8() won't actually be used for
32-bit targets, but it is still defined to prevent build failure.
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions