From: Hoegeun Kwon Date: Wed, 22 Nov 2023 07:43:30 +0000 (+0900) Subject: riscv: hibernate: Add missing configuration and comment X-Git-Tag: accepted/tizen/unified/riscv/20231130.214005~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F301881%2F2;p=platform%2Fkernel%2Flinux-starfive.git riscv: hibernate: Add missing configuration and comment Add missing HIBERNATION configuration and fix missing comment by mainline. Fixes : ae555bcd50e1 ("RISC-V: Add arch functions to support hibernation/suspend-to-disk") [https://lore.kernel.org/all/20230330064321.1008373-1-jeeheng.sia@starfivetech.com/] Change-Id: I505e3cd130ffe0ed2e79f137b8b40e5b046063db Signed-off-by: Hoegeun Kwon --- diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index c9889950257f..fbfae8d8f6b8 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -52,7 +52,7 @@ config RISCV select CLONE_BACKWARDS select CLINT_TIMER if !MMU select COMMON_CLK - select CPU_PM if CPU_IDLE + select CPU_PM if CPU_IDLE || HIBERNATION select EDAC_SUPPORT select GENERIC_ARCH_TOPOLOGY select GENERIC_ATOMIC64 if !64BIT diff --git a/arch/riscv/kernel/hibernate.c b/arch/riscv/kernel/hibernate.c index f11be60b0668..264b2dcdd67e 100644 --- a/arch/riscv/kernel/hibernate.c +++ b/arch/riscv/kernel/hibernate.c @@ -40,7 +40,7 @@ EXPORT_SYMBOL_GPL(relocated_restore_code); /** * struct arch_hibernate_hdr_invariants - container to store kernel build version. - * @uts_version: to save the build number and date so that the we do not resume with + * @uts_version: to save the build number and date so that we do not resume with * a different kernel. */ struct arch_hibernate_hdr_invariants {