]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00279545 [MX6x:Cpufreq] Initialize mutex before driver registration
authorRanjani Vaidyanathan <ra5478@freescale.com>
Thu, 12 Sep 2013 19:44:20 +0000 (14:44 -0500)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:45 +0000 (09:55 +0800)
commita2b5e3f96b650086daa1d63de0f0c615f1d20d31
treeadc120c6df47fd9d9355017fe641fe159300e9b1
parent002a35101a27eb0028cbce5df1d4037a00941320
ENGR00279545 [MX6x:Cpufreq] Initialize mutex before driver registration

The mutex, set_cpufreq_lock, should be initialized before the driver is
registered. Else if the default governor is set to performance or ondemand,
the cpufreq driver will try to set the freq to the max freq supported and
this will cause a crash during boot.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
drivers/cpufreq/cpufreq-imx6.c