]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: Add stimecmp save and restore
authorNick Hu <nick.hu@sifive.com>
Wed, 19 Feb 2025 11:41:34 +0000 (19:41 +0800)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 18 Mar 2025 12:59:03 +0000 (12:59 +0000)
commitffef54ad41101f98ea6dd1dcd71c60bb6b7c8ee9
tree6844b8eb649ff9d37bdd6ca4d6a004fdd53f1c83
parent6586788f0a8d0f3b33b1383885575f5b5f7b9dad
riscv: Add stimecmp save and restore

If the HW support the SSTC extension, we should save and restore the
stimecmp register while cpu non retention suspend.

Signed-off-by: Nick Hu <nick.hu@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250219114135.27764-2-nick.hu@sifive.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/include/asm/suspend.h
arch/riscv/kernel/suspend.c