cpuidle: RISC-V: Move few functions to arch/riscv
authorSunil V L <sunilvl@ventanamicro.com>
Thu, 18 Jan 2024 06:29:28 +0000 (11:59 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 20 Mar 2024 00:51:38 +0000 (17:51 -0700)
commit6649182a383c9872e9543e2e7d4981d971bf0998
treef57c3db403dbf0ea5052f7703c996570cfa406a0
parent6613476e225e090cc9aad49be7fa504e290dd33d
cpuidle: RISC-V: Move few functions to arch/riscv

To support ACPI Low Power Idle (LPI), few functions are required which
are currently static functions in the DT based cpuidle driver. Hence,
move them under arch/riscv so that ACPI driver also can use them. Since
they are no longer static functions, append "riscv_" prefix to the
function name.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20240118062930.245937-2-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/suspend.h
arch/riscv/kernel/suspend.c
drivers/cpuidle/cpuidle-riscv-sbi.c