cpufreq: ondemand: Prevent sysfs create race
authorPeter Boonstoppel <pboonstoppel@nvidia.com>
Tue, 28 Feb 2012 22:05:50 +0000 (14:05 -0800)
committerSimone Willett <swillett@nvidia.com>
Wed, 7 Mar 2012 05:27:15 +0000 (21:27 -0800)
commitd7700421d4b01eaf300be777f27461c47a266158
treeb108191d7ecead1f8185a787b1045a28ec579fbc
parent79cd1f881bc4aebd94063ab4bbfd7c97c1cd70ac
cpufreq: ondemand: Prevent sysfs create race

Protecting sysfs_remove_group() in CPUFREQ_GOV_STOP with dbs_mutex

Bug 946462

Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/86426
(cherry picked from commit d1131158e2ad4d5ccc53b3008743c29385650d86)

Change-Id: Iae810e83eaa6f0f7d970b56238cbcb61118af610
Reviewed-on: http://git-master/r/87392
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
drivers/cpufreq/cpufreq_ondemand.c