summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2025-02-03 13:06:00 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2025-02-15 00:06:31 +0300
commit599c44cd21f4967774e0acf58f734009be4aea9a (patch)
tree31e4ad9896dbc9bbf3dde647801b53a9ca7db44c /tools/perf/scripts/python/export-to-postgresql.py
parent1898300abf3508bca152e65b36cce5bf93d7e63e (diff)
downloadlinux-599c44cd21f4967774e0acf58f734009be4aea9a.tar.xz
riscv/futex: sign extend compare value in atomic cmpxchg
Make sure the compare value in the lr/sc loop is sign extended to match what lr.w does. Fortunately, due to the compiler keeping the register contents sign extended anyway the lack of the explicit extension didn't result in wrong code so far, but this cannot be relied upon. Fixes: b90edb33010b ("RISC-V: Add futex support.") Signed-off-by: Andreas Schwab <schwab@suse.de> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Björn Töpel <bjorn@rivosinc.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/mvmfrkv2vhz.fsf@suse.de Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions