cpufreq: conservative: remove 'enable' field
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 8 Sep 2015 01:40:34 +0000 (07:10 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 26 Sep 2015 00:59:38 +0000 (02:59 +0200)
commit03d5eec000973e80b1a1ccdef16ed8206621c3e4
tree9b24d4e813e485a53d4c0027a122763cd76deb32
parent78ce6dbfa317c85cfb8a8dc0b5ee588645c795c1
cpufreq: conservative: remove 'enable' field

Conservative governor has its own 'enable' field to check if
conservative governor is used for a CPU or not

This can be checked by policy->governor with 'cpufreq_gov_conservative'
and so this field can be dropped.

Because its not guaranteed that dbs_info->cdbs.shared will a valid
pointer for all CPUs (will be NULL for CPUs that don't use
ondemand/conservative governors), we can't use it anymore. Lets get
policy with cpufreq_cpu_get_raw() instead.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.c
drivers/cpufreq/cpufreq_governor.h
This page took 0.025384 seconds and 5 git commands to generate.