[RFC v2 03/12] PM / cpu_domains: Setup PM domains for CPUs/clusters
Lina Iyer
lina.iyer at linaro.org
Wed Feb 17 15:38:30 PST 2016
On Fri, Feb 12 2016 at 13:51 -0700, Lina Iyer wrote:
>+static int cpu_pd_power_on(struct generic_pm_domain *genpd)
>+{
>+ struct cpu_pm_domain *pd = to_cpu_pd(genpd);
>+
>+ return pd->ops.power_on();
Needs a check for NULL ops.power_on() here.
>+}
>+
>+static int cpu_pd_power_off(struct generic_pm_domain *genpd)
>+{
>+ struct cpu_pm_domain *pd = to_cpu_pd(genpd);
>+
>+ return pd->ops.power_off(genpd->state_idx,
>+ genpd->states[genpd->state_idx].param);
Needs a check for NULL ops.power_off().
Thanks,
Lina
More information about the linux-arm-kernel
mailing list