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>
This commit is contained in:
Nick Hu 2025-02-19 19:41:34 +08:00 • committed by Alexandre Ghiti
commit ffef54ad41
No known key found for this signature in database
GPG key ID: 643FB2BC9285EF8A
2 changed files with 18 additions and 0 deletions