• U
    PM / Domains: Make genpd performance states orthogonal to the idlestates · 68de2fe5
    Ulf Hansson 提交于
    It's quite questionable whether genpd internally should care about if the
    corresponding PM domain for a device is powered on, as to allow setting a
    new performance state for it. The assumptions creates an unnecessary
    limitation at this point, for both consumers and providers, but more
    importantly it also makes the code more complicated.
    
    Therefore, let's simplify the code to allow setting a performance state, by
    invoking the ->set_performance_state() callback, no matter whether the PM
    domain is powered on or off.
    
    Do note, this change means genpd providers needs to restore the performance
    state themselves during power on, via the ->power_on() callback. Moreover,
    they may also need to check that the PM domain is powered on, from their
    ->set_performance_state() callback, before deciding to update the state.
    Tested-by: NRajendra Nayak <rnayak@codeaurora.org>
    Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
    Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
    68de2fe5
domain.c 72.2 KB