diff options
author | Mathieu J. Poirier <mathieu.poirier@linaro.org> | 2013-04-10 09:20:23 -0600 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2013-05-25 13:30:32 +0400 |
commit | 13fa289498623c0f7e44c5b2ef8d0cdee4697982 (patch) | |
tree | 49b701b7220cbb02013cee953f944ba621619ebe | |
parent | 0c571502a47f74fe696aa0a65493803c2a1e1703 (diff) |
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.c | 3 |
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) |