]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/pm_opp.h
PM / OPP: Support adjusting OPP voltages at runtime
authorStephen Boyd <sboyd@codeaurora.org>
Sat, 19 Sep 2015 00:52:06 +0000 (17:52 -0700)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 11 Apr 2018 16:43:51 +0000 (13:43 -0300)
commit7c9995152c820f8797a8071e0e992221d2da0c59
tree815e52f5debdf7d053caacd75b073e36b3ea2255
parent9d86b2d02d348c928c948db7de3188833007bfe9
PM / OPP: Support adjusting OPP voltages at runtime

BugLink: http://bugs.launchpad.net/bugs/1763040
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. Add an API to the OPP library for
the former case, so that AVS type devices can update the voltages
for an OPP when the hardware determines the voltage should
change. The assumption is that drivers like CPUfreq or devfreq
will register for the OPP notifiers and adjust the voltage
according to suggestions that AVS makes.

Cc: Nishanth Menon <nm@ti.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
(cherry picked from commit 8fcd0e8c8b3789274169925b30182af4698fcd9b
http://git.linaro.org/landing-teams/working/qualcomm/kernel.git release/qcomlt-4.14)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/opp/core.c
include/linux/pm_opp.h