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)
commitcea6a9e77228c261191bc92df0d24bf5356b99ff
tree1057de7d1b3a1e98311f69f607ab67f9408723d5
parentbc505475b85de9a9903e84ef0b369d4637354201
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