diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-02-22 16:36:44 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-03-09 14:41:12 +0100 |
commit | 242aa883a64d8c54cfeee47f3603b21bc705e081 (patch) | |
tree | 73aa1224af144ab32edafa14089d870863c46cc7 /block/blk-sysfs.c | |
parent | a1317e091ab1386812ee8ab4e3bbd89f2811bc74 (diff) | |
download | linux-242aa883a64d8c54cfeee47f3603b21bc705e081.tar.gz linux-242aa883a64d8c54cfeee47f3603b21bc705e081.tar.bz2 linux-242aa883a64d8c54cfeee47f3603b21bc705e081.zip |
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>
Diffstat (limited to 'block/blk-sysfs.c')
0 files changed, 0 insertions, 0 deletions