riscv: hibernate: Add missing configuration and comment 81/301881/2
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 22 Nov 2023 07:43:30 +0000 (16:43 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 27 Nov 2023 06:16:34 +0000 (15:16 +0900)
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 <hoegeun.kwon@samsung.com>
arch/riscv/Kconfig
arch/riscv/kernel/hibernate.c

index c988995..fbfae8d 100644 (file)
@@ -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
index f11be60..264b2dc 100644 (file)
@@ -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 {