From 5fcaa5eba5481847dc26d887302ee9e1b2978357 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Wed, 22 Nov 2023 16:43:30 +0900 Subject: [PATCH] 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 --- arch/riscv/Kconfig | 2 +- arch/riscv/kernel/hibernate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index c988995..fbfae8d 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 f11be60..264b2dc 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 { -- 2.7.4