aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-04-29 09:24:46 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-05-12 08:04:15 -0400
commit3c792e0fe17858105b72516f709c48fc8e4a7523 (patch)
treef48fdcdcc43ef54ca89861120a51859436ac357a /drivers
parent996905f3334506296c8a4bec63695bcf7a9df159 (diff)
cpufreq: ARM big LITTLE DT: Return CPUFREQ_ETERNAL if clock-latency isn't found
If "/cpus" node isn't present or "clock-latency" isn't defined we are returning error currently. Let's return CPUFREQ_ETERNAL instead, so that we don't fail. Flag appropriate messages to user in such cases. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/arm_big_little_dt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c
index d5ae4d2362e3..173ed059d95f 100644
--- a/drivers/cpufreq/arm_big_little_dt.c
+++ b/drivers/cpufreq/arm_big_little_dt.c
@@ -66,8 +66,8 @@ static int dt_get_transition_latency(struct device *cpu_dev)
66 66
67 parent = of_find_node_by_path("/cpus"); 67 parent = of_find_node_by_path("/cpus");
68 if (!parent) { 68 if (!parent) {
69 pr_err("failed to find OF /cpus\n"); 69 pr_info("Failed to find OF /cpus. Use CPUFREQ_ETERNAL transition latency\n");
70 return -ENOENT; 70 return CPUFREQ_ETERNAL;
71 } 71 }
72 72
73 for_each_child_of_node(parent, np) { 73 for_each_child_of_node(parent, np) {
@@ -81,7 +81,8 @@ static int dt_get_transition_latency(struct device *cpu_dev)
81 return transition_latency; 81 return transition_latency;
82 } 82 }
83 83
84 return -ENODEV; 84 pr_info("clock-latency isn't found, use CPUFREQ_ETERNAL transition latency\n");
85 return CPUFREQ_ETERNAL;
85} 86}
86 87
87static struct cpufreq_arm_bL_ops dt_bL_ops = { 88static struct cpufreq_arm_bL_ops dt_bL_ops = {