[PATCH v3 11/24] cpuidle: riscv-sbi: Opt-out from genpd's common ->sync_state() support

Rahul Pathak rpathak at ventanamicro.com
Fri Jul 4 03:14:14 PDT 2025


On Tue, Jul 1, 2025 at 5:20 PM Ulf Hansson <ulf.hansson at linaro.org> wrote:
>
> The riscv-sbi-domain implements its own specific ->sync_state() callback.
> Let's set the GENPD_FLAG_NO_SYNC_STATE to inform genpd about it.
>
> Moreover, let's call of_genpd_sync_state() to make sure genpd tries to
> power off unused PM domains.
>
> Cc: Anup Patel <anup at brainfault.org>
> Cc: linux-riscv at lists.infradead.org
> Tested-by: Hiago De Franco <hiago.franco at toradex.com> # Colibri iMX8X
> Tested-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com> # TI AM62A,Xilinx ZynqMP ZCU106
> Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
> ---
>  drivers/cpuidle/cpuidle-riscv-sbi.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>

LGTM

Reviewed-by: Rahul Pathak <rpathak at ventanamicro.com>



More information about the linux-arm-kernel mailing list