]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Aug 2017 10:51:29 +0000 (12:51 +0200)
commit8ebbdd4c3e24e403e390b0eac99ef467fb86f254
treea2335f03f09e128cdb4a7b8f88d7b447a0f5bee0
parentf5f9667df546547224c40f1e131f0f600d5c7676
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