]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 9 Feb 2016 20:34:55 +0000 (21:34 +0100)
commit5a5e1c84df13c3190aa281216749cf7b632f6f3d
tree69dd6560d15783b2b1c6fae91a79eac64e89fa11
parent1eee4affcea07eb998366ae132f488325a2d3a51
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