mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Anup Patel](/assets/img/avatar_default.png)
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>
41 lines
1.7 KiB
Makefile
41 lines
1.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for cpuidle.
|
|
#
|
|
|
|
obj-y += cpuidle.o driver.o governor.o sysfs.o governors/
|
|
obj-$(CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED) += coupled.o
|
|
obj-$(CONFIG_DT_IDLE_STATES) += dt_idle_states.o
|
|
obj-$(CONFIG_DT_IDLE_GENPD) += dt_idle_genpd.o
|
|
obj-$(CONFIG_ARCH_HAS_CPU_RELAX) += poll_state.o
|
|
obj-$(CONFIG_HALTPOLL_CPUIDLE) += cpuidle-haltpoll.o
|
|
|
|
##################################################################################
|
|
# ARM SoC drivers
|
|
obj-$(CONFIG_ARM_MVEBU_V7_CPUIDLE) += cpuidle-mvebu-v7.o
|
|
obj-$(CONFIG_ARM_BIG_LITTLE_CPUIDLE) += cpuidle-big_little.o
|
|
obj-$(CONFIG_ARM_CLPS711X_CPUIDLE) += cpuidle-clps711x.o
|
|
obj-$(CONFIG_ARM_HIGHBANK_CPUIDLE) += cpuidle-calxeda.o
|
|
obj-$(CONFIG_ARM_KIRKWOOD_CPUIDLE) += cpuidle-kirkwood.o
|
|
obj-$(CONFIG_ARM_ZYNQ_CPUIDLE) += cpuidle-zynq.o
|
|
obj-$(CONFIG_ARM_U8500_CPUIDLE) += cpuidle-ux500.o
|
|
obj-$(CONFIG_ARM_AT91_CPUIDLE) += cpuidle-at91.o
|
|
obj-$(CONFIG_ARM_EXYNOS_CPUIDLE) += cpuidle-exynos.o
|
|
obj-$(CONFIG_ARM_CPUIDLE) += cpuidle-arm.o
|
|
obj-$(CONFIG_ARM_PSCI_CPUIDLE) += cpuidle-psci.o
|
|
obj-$(CONFIG_ARM_PSCI_CPUIDLE_DOMAIN) += cpuidle-psci-domain.o
|
|
obj-$(CONFIG_ARM_TEGRA_CPUIDLE) += cpuidle-tegra.o
|
|
obj-$(CONFIG_ARM_QCOM_SPM_CPUIDLE) += cpuidle-qcom-spm.o
|
|
|
|
###############################################################################
|
|
# MIPS drivers
|
|
obj-$(CONFIG_MIPS_CPS_CPUIDLE) += cpuidle-cps.o
|
|
|
|
###############################################################################
|
|
# POWERPC drivers
|
|
obj-$(CONFIG_PSERIES_CPUIDLE) += cpuidle-pseries.o
|
|
obj-$(CONFIG_POWERNV_CPUIDLE) += cpuidle-powernv.o
|
|
|
|
###############################################################################
|
|
# RISC-V drivers
|
|
obj-$(CONFIG_RISCV_SBI_CPUIDLE) += cpuidle-riscv-sbi.o
|