]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: governor: Add a ->start callback for governors
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Feb 2016 01:21:21 +0000 (02:21 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:07 +0000 (14:41 +0100)
commitd0c4e6b022d8e11ca26e327bb3864792ba83e4b7
tree245a4ac07166204e1aee917cc2b5057ec28eed16
parent98e9a26e654658ef08d68d15f29270880dd3201a
cpufreq: governor: Add a ->start callback for governors

To avoid having to check the governor type explicitly in the common
code in order to initialize data structures specific to the governor
type properly, add a ->start callback to struct dbs_governor and
use it to initialize those data structures for the ondemand and
conservative governors.

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