aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorJunjie Wu <junjiew@codeaurora.org>2014-01-07 18:20:52 -0800
committerJunjie Wu <junjiew@codeaurora.org>2014-01-09 19:06:21 -0800
commitf30be559b1d7139400a4f652ce7f436d917c98e2 (patch)
tree16c8420673864fb8f9904df98079634d91868797 /scripts/gcc-wrapper.py
parentfd2e1ed4f752410c705a912e2895b506fed102bd (diff)
cpufreq: Call cpufreq_update_policy() during cpufreq_stats_init()
Commit da12b9488e8 (cpufreq: Fix misplaced call to cpufreq_update_policy()) removed cpufreq_update_policy() that was in cpufreq_stats_init(). The fix of moving cpufreq_update_policy() in hotplug notifier is still valid. However, by removing the call in cpufreq_stats_init(), it misses a corner case where cpufreq_stats register last and no hotplug or cpufreq change happens afterwards. Then a CPUFREQ_NOTIFY will never be sent to cpufreq_stats hotplug notifier, and sysfs won't be created. Put back the cpufreq_update_policy() call after registering for hotplug notifier in cpufreq_stats_init(). The call will force a CPUFREQ_NOTIFY notification to be sent and sysfs to be created. In case cpufreq driver is not registered, it will just fail silently. Change-Id: I6d792d0ba600a7d8c70ccb2adae1e2cbadc0463e Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions