Skip to content

Commit c6399b8

Browse files
Song Shuaipalmer-dabbelt
authored andcommitted
riscv: hibernation: Remove duplicate call of suspend_restore_csrs
The suspend_restore_csrs is called in both __hibernate_cpu_resume and the `else` of subsequent swsusp_arch_suspend. Removing the first call makes both suspend_{save,restore}_csrs left in swsusp_arch_suspend for clean code. Fixes: c031721 ("RISC-V: Add arch functions to support hibernation/suspend-to-disk") Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: JeeHeng Sia <[email protected]> Signed-off-by: Song Shuai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 650ea2a commit c6399b8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/riscv/kernel/hibernate-asm.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ ENTRY(__hibernate_cpu_resume)
2828

2929
REG_L a0, hibernate_cpu_context
3030

31-
suspend_restore_csrs
3231
suspend_restore_regs
3332

3433
/* Return zero value. */

0 commit comments

Comments
 (0)