From: Dirk Brandewie Date: Wed, 6 Feb 2013 17:02:12 +0000 (-0800) Subject: cpufreq_stats: do not remove sysfs files if frequency table is not present X-Git-Tag: v3.9-rc1~146^2~3^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=633d47d653f3a717fb68293d24ab7059c480f71b;p=pandora-kernel.git cpufreq_stats: do not remove sysfs files if frequency table is not present The sysfs files for cpufreq_stats are created in cpufreq_stats_create_table() called from cpufreq_stat_notifier_policy() when a policy is added to the cpu. cpufreq_stats_create_table() will not be called if the scaling driver does not export a frequency table to cpufreq. Use the same fence on tear down. Signed-off-by: Dirk Brandewie Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed