From: Nishanth Menon Date: Tue, 20 Dec 2011 00:17:50 +0000 (-0800) Subject: cpufreq: OMAP: fix freq_table leak X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd4e544da878929870113b97dc602b76a1bc3088;p=pandora-kernel.git cpufreq: OMAP: fix freq_table leak We use a single frequency table for multiple CPUs. But, with OMAP4, since we have multiple CPUs, the cpu_init call for CPU1 causes freq_table previously allocated for CPU0 to be overwritten. In addition, we dont free the table on exit path. We solve this by maintaining an atomic type counter to ensure just a single table exists at a given time. Signed-off-by: Nishanth Menon Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed