RISC-V: Change suspend_save_csrs and suspend_restore_csrs to public function
authorSia Jee Heng <jeeheng.sia@starfivetech.com>
Tue, 14 Mar 2023 05:03:13 +0000 (13:03 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 28 Mar 2023 03:23:14 +0000 (12:23 +0900)
commit60b15feb55b083a04cddbb3ddbd5f7ef81dc3285
treea278661bdb8d188e61d5ab7a1d35a03205ef7e01
parentcc73f9d7faf0ca011e8e39bf45cd2b4283301071
RISC-V: Change suspend_save_csrs and suspend_restore_csrs to public function

Currently suspend_save_csrs() and suspend_restore_csrs() functions are
statically defined in the suspend.c. Change the function's attribute
to public so that the functions can be used by hibernation as well.

Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
Reviewed-by: Mason Huo <mason.huo@starfivetech.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
arch/riscv/include/asm/suspend.h
arch/riscv/kernel/suspend.c