]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Remove 'policy->governor_enabled'
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 22 Feb 2016 11:06:44 +0000 (16:36 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:12 +0000 (14:41 +0100)
commit108be6220b2763e6ded71831a135d5af8b5de298
tree73aa1224af144ab32edafa14089d870863c46cc7
parent3f569aeceab6639d32324c20c7869eb8c40f1893
cpufreq: Remove 'policy->governor_enabled'

The entire sequence of events (like INIT/START or STOP/EXIT) for which
cpufreq_governor() is called, is guaranteed to be protected by
policy->rwsem now.

The additional checks that were added earlier (as we were forced to drop
policy->rwsem before calling cpufreq_governor() for EXIT event), aren't
required anymore.

Over that, they weren't sufficient really. They just take care of
START/STOP events, but not INIT/EXIT and the state machine was never
maintained properly by them.

Kill the unnecessary checks and policy->governor_enabled field.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h