aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/pmac64-cpufreq.c
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2013-09-30 16:44:32 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-16 18:56:56 -0400
commitaf671d8b2c2ace771e08566b20774cc08ee53316 (patch)
tree7f083611bb9ea2c653d97a1cfc9db8be0ba65e1d /drivers/cpufreq/pmac64-cpufreq.c
parent45a428ebbf7d6a4ec77cf02fc706ecd62b261bd9 (diff)
cpufreq: pmac64: provide cpufreq transition latency for older G5 models
Currently cpufreq ondemand governor cannot used on older G5 models, because the transition latency is set to CPUFREQ_ETERNAL. Provide a value based on a measurement on Xserve G5, which happens to be also the highest allowed latency. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/pmac64-cpufreq.c')
-rw-r--r--drivers/cpufreq/pmac64-cpufreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c
index 889c0d553572..db9764e83668 100644
--- a/drivers/cpufreq/pmac64-cpufreq.c
+++ b/drivers/cpufreq/pmac64-cpufreq.c
@@ -627,8 +627,10 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode)
627 g5_cpu_freqs[0].frequency = max_freq; 627 g5_cpu_freqs[0].frequency = max_freq;
628 g5_cpu_freqs[1].frequency = min_freq; 628 g5_cpu_freqs[1].frequency = min_freq;
629 629
630 /* Based on a measurement on Xserve G5, rounded up. */
631 transition_latency = 10 * NSEC_PER_MSEC;
632
630 /* Set callbacks */ 633 /* Set callbacks */
631 transition_latency = CPUFREQ_ETERNAL;
632 g5_switch_volt = g5_pfunc_switch_volt; 634 g5_switch_volt = g5_pfunc_switch_volt;
633 g5_switch_freq = g5_pfunc_switch_freq; 635 g5_switch_freq = g5_pfunc_switch_freq;
634 g5_query_freq = g5_pfunc_query_freq; 636 g5_query_freq = g5_pfunc_query_freq;