summaryrefslogtreecommitdiffstats
path: root/kernel/configs.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-10-12 15:07:23 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-10-14 00:46:04 +0200
commit42f6284ae602469762ee721ec31ddfc6170e00bc (patch)
tree5db49df2f5c48a9a1cf45eec840b77aba84560f7 /kernel/configs.c
parent9e9704ea5baf09e4c61be5901439da34c39995d0 (diff)
downloadop-kernel-dev-42f6284ae602469762ee721ec31ddfc6170e00bc.zip
op-kernel-dev-42f6284ae602469762ee721ec31ddfc6170e00bc.tar.gz
PM / Domains: Add support to select performance-state of domains
Some platforms have the capability to configure the performance state of PM domains. This patch enhances the genpd core to support such platforms. The performance levels (within the genpd core) are identified by positive integer values, a lower value represents lower performance state. This patch adds a new genpd API, which is called by user drivers (like OPP framework): - int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state); This updates the performance state constraint of the device on its PM domain. On success, the genpd will have its performance state set to a value which is >= "state" passed to this routine. The genpd core calls the genpd->set_performance_state() callback, if implemented, else -ENODEV is returned to the caller. The PM domain drivers need to implement the following callback if they want to support performance states. - int (*set_performance_state)(struct generic_pm_domain *genpd, unsigned int state); This is called internally by the genpd core on several occasions. The genpd core passes the genpd pointer and the aggregate of the performance states of the devices supported by that genpd to this callback. This callback must update the performance state of the genpd (in a platform dependent way). The power domains can avoid supplying above callback, if they don't support setting performance-states. Currently we aren't propagating performance state changes of a subdomain to its masters as we don't have hardware that needs it right now. Over that, the performance states of subdomain and its masters may not have one-to-one mapping and would require additional information. We can get back to this once we have hardware that needs it. Tested-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/configs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud