summaryrefslogtreecommitdiff
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2021-06-03 11:34:36 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-11 18:39:24 +0200
commitd97fe100ee0b36c5dd8013ffd70fe8fcdcabff2b (patch)
tree76e151367dac89e324c223ce9cd94ebeb2138aa5 /include/linux/pm_domain.h
parent0eef091d2dc447e10607f6dafa173c311ada972b (diff)
PM: domains: Return early if perf state is already set for the device
When dev_pm_genpd_set_performance_state() gets called to set a new performance state for the device, let's take a quicker path by doing an early return, if it turns out that the new state is already set for the device. Suggested-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_domain.h')
0 files changed, 0 insertions, 0 deletions