aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu J. Poirier <mathieu.poirier@linaro.org>2013-04-10 09:20:23 -0600
committerAndrey Konovalov <andrey.konovalov@linaro.org>2013-05-25 13:30:32 +0400
commit13fa289498623c0f7e44c5b2ef8d0cdee4697982 (patch)
tree49b701b7220cbb02013cee953f944ba621619ebe
parent0c571502a47f74fe696aa0a65493803c2a1e1703 (diff)
downloadvexpress-lsk-13fa289498623c0f7e44c5b2ef8d0cdee4697982.tar.gz
cpufreq: arm_big_little: Free virtual table when unregistering driver
When operating in IKS mode 'freq_table[MAX_CLUSTERS]' is allocated memory to store the virtual frequency table. When unregistering the bL cpufreq driver that memory needs to be freed. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
-rw-r--r--drivers/cpufreq/arm_big_little.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c
index 526c1e9d91d..7858957b9e6 100644
--- a/drivers/cpufreq/arm_big_little.c
+++ b/drivers/cpufreq/arm_big_little.c
@@ -353,6 +353,9 @@ static void put_cluster_clk_and_freq_table(u32 cluster)
for (i = 0; i < MAX_CLUSTERS; i++)
_put_cluster_clk_and_freq_table(i);
+
+ /* free virtual table */
+ arm_bL_free_freq_table(MAX_CLUSTERS);
}
static int _get_cluster_clk_and_freq_table(u32 cluster)