aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Tanenbaum <jtanenba@redhat.com>2015-11-19 10:29:01 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-12-09 18:17:03 -0500
commit790d849bf811a8ab5d4cd2cce0f6fda92f6aebf2 (patch)
tree73e897ae3f06324f78fe1d7b3c02d84bcc96a58f
parent2f7e8a175db72bdaf377235962fd85796edb3fbc (diff)
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>
-rw-r--r--Documentation/cpu-freq/pcc-cpufreq.txt4
-rw-r--r--drivers/cpufreq/pcc-cpufreq.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/cpu-freq/pcc-cpufreq.txt b/Documentation/cpu-freq/pcc-cpufreq.txt
index 9e3c3b33514c..0a94224ad296 100644
--- a/Documentation/cpu-freq/pcc-cpufreq.txt
+++ b/Documentation/cpu-freq/pcc-cpufreq.txt
@@ -159,8 +159,8 @@ to be strictly associated with a P-state.
159 159
1602.2 cpuinfo_transition_latency: 1602.2 cpuinfo_transition_latency:
161------------------------------- 161-------------------------------
162The cpuinfo_transition_latency field is 0. The PCC specification does 162The cpuinfo_transition_latency field is CPUFREQ_ETERNAL. The PCC specification
163not include a field to expose this value currently. 163does not include a field to expose this value currently.
164 164
1652.3 cpuinfo_cur_freq: 1652.3 cpuinfo_cur_freq:
166--------------------- 166---------------------
diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c
index 2a0d58959acf..808a320e9d5d 100644
--- a/drivers/cpufreq/pcc-cpufreq.c
+++ b/drivers/cpufreq/pcc-cpufreq.c
@@ -555,6 +555,8 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy)
555 policy->min = policy->cpuinfo.min_freq = 555 policy->min = policy->cpuinfo.min_freq =
556 ioread32(&pcch_hdr->minimum_frequency) * 1000; 556 ioread32(&pcch_hdr->minimum_frequency) * 1000;
557 557
558 policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
559
558 pr_debug("init: policy->max is %d, policy->min is %d\n", 560 pr_debug("init: policy->max is %d, policy->min is %d\n",
559 policy->max, policy->min); 561 policy->max, policy->min);
560out: 562out: