]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Register notifiers with the PM QoS framework
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 8 Jul 2019 10:57:52 +0000 (16:27 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Jul 2019 21:56:13 +0000 (23:56 +0200)
commit3632e1830f99d721b206fd730d3e854e66f30284
tree1ddd2ec5245c0bfa340d01230733aadb9505dcf4
parent9cc7202994e1f617e273314741668ceb4de6526d
cpufreq: Register notifiers with the PM QoS framework

Register notifiers for min/max frequency constraints with the PM QoS
framework. The constraints are also taken into consideration in
cpufreq_set_policy().

This also relocates cpufreq_policy_put_kobj() as it is required to be
called from cpufreq_policy_alloc() now.

refresh_frequency_limits() is updated to avoid calling
cpufreq_set_policy() for inactive policies and handle_update() is
updated to have proper locking in place.

No constraints are added until now though.

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h