]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Fix counter restart during overflow for RV32
authorAtish Patra <atishp@rivosinc.com>
Mon, 11 Jul 2022 17:46:28 +0000 (10:46 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Aug 2022 21:58:07 +0000 (14:58 -0700)
commit9d48996e7a9f8f8fe5dbcd6e786547db9380d945
tree11058347c96ea9e53bac3d4a107478b36e1677af
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
RISC-V: Fix counter restart during overflow for RV32

Pass the upper half of the initial value of the counter correctly
for RV32.

Fixes: 20dfcae6ffdd ("RISC-V: Add sscofpmf extension support")
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220711174632.4186047-2-atishp@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/perf/riscv_pmu_sbi.c