cpuidle: Add RISC-V SBI CPU idle driver
authorAnup Patel <anup.patel@wdc.com>
Thu, 10 Feb 2022 05:49:45 +0000 (11:19 +0530)
committermason.huo <mason.huo@starfivetech.com>
Tue, 5 Jul 2022 05:40:17 +0000 (13:40 +0800)
commitffcfa4cc7dbc098cea5a2297ef93b108e11dd8b5
tree5545750a4832a807bbf006b93e40d9429a530923
parent8184e460a3b024d9d4d1681ca1ab02fd2ba48ed7
cpuidle: Add RISC-V SBI CPU idle driver

The RISC-V SBI HSM extension provides HSM suspend call which can
be used by Linux RISC-V to enter platform specific low-power state.

This patch adds a CPU idle driver based on RISC-V SBI calls which
will populate idle states from device tree and use SBI calls to
entry these idle states.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Acked-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
MAINTAINERS
drivers/cpuidle/Kconfig
drivers/cpuidle/Kconfig.riscv [new file with mode: 0644]
drivers/cpuidle/Makefile
drivers/cpuidle/cpuidle-riscv-sbi.c [new file with mode: 0644]