]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: governor: Symmetrize cpu_dbs_info initialization and cleanup
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 7 Feb 2016 15:25:02 +0000 (16:25 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:40:56 +0000 (14:40 +0100)
commit8ecc22595f2fad5eb384ed02936b43b3c9ed4a3b
tree1057de7d1b3a1e98311f69f607ab67f9408723d5
parente6946b47a0eeeadbb49530fdb9f8d2289f9b08e5
cpufreq: governor: Symmetrize cpu_dbs_info initialization and cleanup

Make the initialization of struct cpu_dbs_info objects in
alloc_policy_dbs_info() and the code that cleans them up in
free_policy_dbs_info() more symmetrical.  In particular,
set/clear the update_util.func field in those functions along
with the policy_dbs field.

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