On 27/02/2019 20:58, Ulf Hansson wrote: > To enable a device belonging to a CPU to be attached to a PM domain managed > by genpd, let's do a few changes to it, as to make it convenient to manage > the specifics around CPUs. > > To be able to quickly find out what CPUs that are attached to a genpd, > which typically becomes useful from a genpd governor as following changes > is about to show, let's add a cpumask to the struct generic_pm_domain. At > the point when a CPU device gets attached to a genpd, let's update the > genpd's cpumask. Moreover, let's also propagate changes to the cpumask > upwards in the topology to the master PM domains. In this way, the cpumask > for a genpd hierarchically reflects all CPUs attached to the topology below > it. > > Finally, let's make this an opt-in feature, to avoid having to manage CPUs > and the cpumask for a genpd that doesn't need it. For that reason, let's > add a new genpd configuration bit, GENPD_FLAG_CPU_DOMAIN. > > Cc: Lina Iyer <ilina@xxxxxxxxxxxxxx> > Co-developed-by: Lina Iyer <lina.iyer@xxxxxxxxxx> > Acked-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx> > Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Acked-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog