RISC-V: Enable CPU_IDLE drivers
authorAnup Patel <anup.patel@wdc.com>
Thu, 10 Feb 2022 05:49:40 +0000 (11:19 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 10 Mar 2022 17:29:21 +0000 (09:29 -0800)
commitf6e64b66629e8fff0997825ade06619f09a06583
tree7f054cbebc4b84847e99a1aed50a84d70f5531fc
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
RISC-V: Enable CPU_IDLE drivers

We force select CPU_PM and provide asm/cpuidle.h so that we can
use CPU IDLE drivers for Linux RISC-V kernel.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Anup Patel <apatel@vetanamicro.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/configs/defconfig
arch/riscv/configs/rv32_defconfig
arch/riscv/include/asm/cpuidle.h [new file with mode: 0644]
arch/riscv/kernel/process.c