• Viresh Kumar's avatar
    PM / Domain: Implement of_genpd_opp_to_performance_state() · 6e41766a
    Viresh Kumar authored
    This implements of_genpd_opp_to_performance_state() which can be used
    from the device drivers or the OPP core to find the performance state
    encoded in the "required-opps" property of a node. Normally this would
    be called only once for each OPP of the device for which the OPP table
    of the device is getting generated.
    
    Different platforms may encode the performance state differently using
    the OPP table (they may simply return value of opp-hz or opp-microvolt,
    or apply some algorithm on top of those values) and so a new callback
    ->opp_to_performance_state() is implemented to allow platform specific
    drivers to convert the power domain OPP to a performance state value.
    Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    6e41766a
domain.c 69.2 KB