summaryrefslogtreecommitdiffstats
path: root/Documentation/cpu-freq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-07-23 08:14:10 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-09-02 22:44:05 +0200
commitc27c38afd871f54b40bd40172cb4e23fba01113c (patch)
tree5e115fc2b51cad51508df91dc3eb4483c2a6920a /Documentation/cpu-freq
parentcpufreq: Remove CPUFREQ_ADJUST and CPUFREQ_NOTIFY policy notifier events (diff)
downloadlinux-c27c38afd871f54b40bd40172cb4e23fba01113c.tar.xz
linux-c27c38afd871f54b40bd40172cb4e23fba01113c.zip
Documentation: cpufreq: Update policy notifier documentation
Update documentation with the recent policy notifier updates. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/cpu-freq')
-rw-r--r--Documentation/cpu-freq/core.txt16
1 files changed, 4 insertions, 12 deletions
diff --git a/Documentation/cpu-freq/core.txt b/Documentation/cpu-freq/core.txt
index 55193e680250..ed577d9c154b 100644
--- a/Documentation/cpu-freq/core.txt
+++ b/Documentation/cpu-freq/core.txt
@@ -57,19 +57,11 @@ transition notifiers.
2.1 CPUFreq policy notifiers
----------------------------
-These are notified when a new policy is intended to be set. Each
-CPUFreq policy notifier is called twice for a policy transition:
+These are notified when a new policy is created or removed.
-1.) During CPUFREQ_ADJUST all CPUFreq notifiers may change the limit if
- they see a need for this - may it be thermal considerations or
- hardware limitations.
-
-2.) And during CPUFREQ_NOTIFY all notifiers are informed of the new policy
- - if two hardware drivers failed to agree on a new policy before this
- stage, the incompatible hardware shall be shut down, and the user
- informed of this.
-
-The phase is specified in the second argument to the notifier.
+The phase is specified in the second argument to the notifier. The phase is
+CPUFREQ_CREATE_POLICY when the policy is first created and it is
+CPUFREQ_REMOVE_POLICY when the policy is removed.
The third argument, a void *pointer, points to a struct cpufreq_policy
consisting of several values, including min, max (the lower and upper