Skip to content

Commit 790d849

Browse files
JacobTanenbaumrafaeljw
authored andcommitted
cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency
The cpufreq documentation specifies policy->cpuinfo.transition_latency the time it takes on this CPU to switch between two frequencies in nanoseconds (if appropriate, else specify CPUFREQ_ETERNAL) currently pcc-cpufreq does not expose the value and sets it to zero. I changed the pcc-cpufreq driver and it's documentation to conform to the default value specified in Documentation/cpu-freq/cpu-drivers.txt Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 2f7e8a1 commit 790d849

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎Documentation/cpu-freq/pcc-cpufreq.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ to be strictly associated with a P-state.
159159

160160
2.2 cpuinfo_transition_latency:
161161
-------------------------------
162-
The cpuinfo_transition_latency field is 0. The PCC specification does
163-
not include a field to expose this value currently.
162+
The cpuinfo_transition_latency field is CPUFREQ_ETERNAL. The PCC specification
163+
does not include a field to expose this value currently.
164164

165165
2.3 cpuinfo_cur_freq:
166166
---------------------

‎drivers/cpufreq/pcc-cpufreq.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy)
555555
policy->min = policy->cpuinfo.min_freq =
556556
ioread32(&pcch_hdr->minimum_frequency) * 1000;
557557

558+
policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
559+
558560
pr_debug("init: policy->max is %d, policy->min is %d\n",
559561
policy->max, policy->min);
560562
out:

0 commit comments

Comments
 (0)