cpufreq: move some initialization stuff to cpufreq_policy_alloc()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 2 Jan 2015 07:04:38 +0000 (12:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 21:49:35 +0000 (22:49 +0100)
commit818c57126e101abf87741131298354258396480c
treebd45c80aae6587d51842e8b8f838d88f5a392722
parentce1bcfe94db895cbd6876e176af5824742b29e25
cpufreq: move some initialization stuff to cpufreq_policy_alloc()

We need to initialize completion and work only on policy allocation and not
really on the policy restore side and so we better move this piece of code to
cpufreq_policy_alloc().

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