cpufreq: governors: Get rid of dbs_data->enable field
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 31 Jan 2013 17:28:01 +0000 (17:28 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2013 23:01:16 +0000 (00:01 +0100)
commit8eeed0956615294200be783bb67d851280b5b1b9
tree985273bc32c344dbb7eb508a7045255bb4e2b057
parent09dca5ae7531c9df379a2c2484a17438b9e947bc
cpufreq: governors: Get rid of dbs_data->enable field

CPUFREQ_GOV_START/STOP are called only once for all policy->cpus and hence we
don't need to adapt cpufreq_governor_dbs() routine for multiple calls.

So, this patch removes dbs_data->enable field entirely. And rearrange code a
bit.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_governor.c
drivers/cpufreq/cpufreq_governor.h