]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq-dt: Handle OPP voltage adjust events
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 2 Jun 2015 01:47:58 +0000 (18:47 -0700)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:17 +0000 (09:55 +0000)
commit175329015c8a0b480240da222822d2f8316f074d
tree509f8b5d2700d1254df289f1ef26c21682d58968
parentd330eae026b4a73e77ca0422f5cae5207d80f738
cpufreq-dt: Handle OPP voltage adjust events

On some SoCs the Adaptive Voltage Scaling (AVS) technique is
employed to optimize the operating voltage of a device. At a
given frequency, the hardware monitors dynamic factors and either
makes a suggestion for how much to adjust a voltage for the
current frequency, or it automatically adjusts the voltage
without software intervention.

In the former case, an AVS driver will call
dev_pm_opp_modify_voltage() and update the voltage for the
particular OPP the CPUs are using. Add an OPP notifier to
cpufreq-dt so that we can adjust the voltage of the CPU when AVS
updates the OPP.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/cpufreq/cpufreq-dt.c