]> git.karo-electronics.de Git - linux-beck.git/commit
cpufreq: OMAP: Handle missing frequency table on SMP systems
authorRajendra Nayak <rnayak@ti.com>
Thu, 9 Aug 2012 07:08:21 +0000 (12:38 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 9 Aug 2012 15:07:47 +0000 (08:07 -0700)
commit1b8652142334a8c0729c5c4536a22cfc6fc49297
treeaf0cfa1b7d2c86221fb141b91f9d1cdf85022992
parent5b6e3eb576e8ad03264d46982afed77bdc6323a3
cpufreq: OMAP: Handle missing frequency table on SMP systems

On OMAP4, if the first CPU fails to get a valid frequency table (this
could happen if the platform does not register any OPP table), the
subsequent CPU instances end up dealing with a NULL freq_table and
crash.

Check for an already existing freq_table, before trying to create one,
and increment the freq_table_users only if the table is sucessfully
created.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: <linux-pm@vger.kernel.org>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/cpufreq/omap-cpufreq.c