From: Rajendra Nayak Date: Thu, 9 Aug 2012 07:08:21 +0000 (+0530) Subject: cpufreq: OMAP: Handle missing frequency table on SMP systems X-Git-Tag: omap-fixes-for-v3.6-rc1~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b8652142334a8c0729c5c4536a22cfc6fc49297;p=pandora-kernel.git 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 Signed-off-by: Santosh Shilimkar Cc: Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed