RISC-V: Factor out common code of __cpu_resume_enter()
authorSia Jee Heng <jeeheng.sia@starfivetech.com>
Tue, 14 Mar 2023 05:03:14 +0000 (13:03 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:46 +0000 (08:24 +0900)
commit1d8b6a4e85be33206999e896e4724af2c57ed042
tree7a433a013457b3641f3d749f0e98d84f9351cce4
parentc3abde8e5a9724ba3189e5f2fb4fe17b94e11e83
RISC-V: Factor out common code of __cpu_resume_enter()

The cpu_resume() function is very similar for the suspend to disk and
suspend to ram cases. Factor out the common code into suspend_restore_csrs
macro and suspend_restore_regs macro.

Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/include/asm/assembler.h [new file with mode: 0644]
arch/riscv/kernel/suspend_entry.S