summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-08-06 22:53:10 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-10 03:24:47 +0200
commitfe492f3f0332e23cc6ca4913e5a2ed78e1888902 (patch)
tree0e87539040aabaf02babc0edc49fbb27610b0e3b /drivers/block
parenteb608521f1e25a8c14295b6d9a3853c3cd8c6cf8 (diff)
downloadblackbird-obmc-linux-fe492f3f0332e23cc6ca4913e5a2ed78e1888902.tar.gz
blackbird-obmc-linux-fe492f3f0332e23cc6ca4913e5a2ed78e1888902.zip
cpufreq: Fix broken usage of governor->owner's refcount
The cpufreq governor owner refcount usage is broken. We should only increment that refcount when a CPUFREQ_GOV_POLICY_INIT event has come and it should only be decremented if CPUFREQ_GOV_POLICY_EXIT has come. Currently, there can be situations where the governor is in use, but we have allowed it to be unloaded which may result in undefined behavior. Let's fix it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud