diff options
| author | Junjie Wu <junjiew@codeaurora.org> | 2014-01-07 18:20:52 -0800 |
|---|---|---|
| committer | Junjie Wu <junjiew@codeaurora.org> | 2014-01-09 19:06:21 -0800 |
| commit | f30be559b1d7139400a4f652ce7f436d917c98e2 (patch) | |
| tree | 16c8420673864fb8f9904df98079634d91868797 /scripts/build-all.py | |
| parent | fd2e1ed4f752410c705a912e2895b506fed102bd (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/build-all.py')
0 files changed, 0 insertions, 0 deletions
