• Javi Merino's avatar
    PM / OPP: get the voltage for all OPPs · d6d00742
    Javi Merino authored
    The OPP library is now used for power models to calculate the power
    that a device would consume at a specific OPP.  To do that, we use a
    simple power model which takes frequency and voltage as inputs.  We get
    the voltage and frequency from the OPP library.
    
    The devfreq cooling device for the thermal framework controls
    temperature by disabling OPPs.  The power model needs to calculate the
    power that would be consumed if we reenabled the OPP.  Therefore, let
    dev_pm_opp_get_voltage() work for disabled OPPs.
    
    Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
    Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: default avatarJavi Merino <javi.merino@arm.com>
    Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
    d6d00742
opp.c 44.8 KB