diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 646ec616ae52..7bd9c1726273 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -160,12 +160,18 @@ out_clk_put: static int cpufreq_online(struct cpufreq_policy *policy) { +#ifdef CONFIG_ARCH_ROCKCHIP + return rockchip_cpufreq_online(policy->cpu); +#endif /* We did light-weight tear down earlier, nothing to do here */ return 0; } static int cpufreq_offline(struct cpufreq_policy *policy) { +#ifdef CONFIG_ARCH_ROCKCHIP + return rockchip_cpufreq_offline(policy->cpu); +#endif /* * Preserve policy->driver_data and don't free resources on light-weight * tear down.