diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2012-12-11 16:30:01 +0530 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-07-19 13:43:15 +0100 |
commit | 2759011945a8b811fa6db98392b629423d7e21d9 (patch) | |
tree | aacaa22b6080c6b16832305961a3b1df684c91cf /drivers/scsi/bfa | |
parent | 24abb4a376229e68895d1296f38c4743a4559a2f (diff) |
cpufreq: cpufreq_stats: Register for bL_switcher notifiers
cpufreq_stat has registered notifiers with both cpufreq and cpu core. It adds
cpu/cpu0/cpufreq/stats/ directory with a notifier of cpufreq CPUFREQ_NOTIFY and
removes this directory with a notifier to cpu core.
On bL_switcher enable/disable, cpufreq drivers notifiers gets called and they
call cpufreq_unregister(), followed by cpufreq_register(). For unregister stats
directories per cpu aren't removed, because cpu never went to dead state and cpu
notifier isn't called.
When cpufreq_register() is called, we try to add these directories again and
that simply fails, as directories were already present.
Fix these issues by registering cpufreq_stats too with bL_switcher notifiers, so
that they get unregistered and registered on switcher enable/disable.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/scsi/bfa')
0 files changed, 0 insertions, 0 deletions