PM / OPP: Add clock-latency-ns support
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 29 Jul 2015 10:53:03 +0000 (16:23 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Aug 2015 01:04:23 +0000 (03:04 +0200)
commit3ca9bb33c627f22640cfca97fdf88eec0a120dfd
tree10ea15249fd8384b13b52b8a5cb8d0c2b7b71027
parent274659029c9de5b11678d3a52a45e3dbc9177a48
PM / OPP: Add clock-latency-ns support

With "operating-points-v2" bindings, clock-latency is defined per OPP.
Users of this value expect a single value which defines the latency to
switch to any clock rate. Find maximum clock-latency-ns from the OPP
table to service requests from such users.

Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c
include/linux/pm_opp.h