aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2012-05-08 16:51:31 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2012-05-08 17:05:35 +0530
commita7d326946fca2a4a22374daea683d1d369115496 (patch)
tree404c6042754ac5c8671a5d744f0955be3acf576b
parentb1893001b0a95e2483e6816dc68a22e79822e317 (diff)
cpufreq/arm-bl-cpufreq: populate frequency table
This fixes null pointer exception in case of interactive governor and the sysfs now shows the transition tables statistics. Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--drivers/cpufreq/arm-bl-cpufreq_driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/cpufreq/arm-bl-cpufreq_driver.c b/drivers/cpufreq/arm-bl-cpufreq_driver.c
index 95d499181f3..75aaa4498aa 100644
--- a/drivers/cpufreq/arm-bl-cpufreq_driver.c
+++ b/drivers/cpufreq/arm-bl-cpufreq_driver.c
@@ -163,6 +163,11 @@ static int bl_cpufreq_init(struct cpufreq_policy *policy)
goto error;
/*
+ *Populate frequency table needed by Interactive governor policy.
+ */
+ cpufreq_frequency_table_get_attr(bl_freqs,policy->cpu);
+
+ /*
* No need for locking here:
* cpufreq is not active until initialisation has finished.
* Ideally, transition_latency should be calibrated here.