Skip to content

Commit c27c38a

Browse files
vireshkrafaeljw
authored andcommitted
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>
1 parent df0eea4 commit c27c38a

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

‎Documentation/cpu-freq/core.txt‎

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,11 @@ transition notifiers.
5757
2.1 CPUFreq policy notifiers
5858
----------------------------
5959

60-
These are notified when a new policy is intended to be set. Each
61-
CPUFreq policy notifier is called twice for a policy transition:
60+
These are notified when a new policy is created or removed.
6261

63-
1.) During CPUFREQ_ADJUST all CPUFreq notifiers may change the limit if
64-
they see a need for this - may it be thermal considerations or
65-
hardware limitations.
66-
67-
2.) And during CPUFREQ_NOTIFY all notifiers are informed of the new policy
68-
- if two hardware drivers failed to agree on a new policy before this
69-
stage, the incompatible hardware shall be shut down, and the user
70-
informed of this.
71-
72-
The phase is specified in the second argument to the notifier.
62+
The phase is specified in the second argument to the notifier. The phase is
63+
CPUFREQ_CREATE_POLICY when the policy is first created and it is
64+
CPUFREQ_REMOVE_POLICY when the policy is removed.
7365

7466
The third argument, a void *pointer, points to a struct cpufreq_policy
7567
consisting of several values, including min, max (the lower and upper

0 commit comments

Comments
 (0)