]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: Add helper to perform alloc/free of policy structure
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Mon, 29 Jul 2013 22:54:11 +0000 (04:24 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2013 12:16:00 +0000 (14:16 +0200)
commita22da27aa0fe5e91e1f82c30d54038c6217728b5
tree7afd4aec7fb8abf7dbeb5992a594776120f206d2
parente94a1386f05a750a4e4016f555189f44fa3089d0
cpufreq: Add helper to perform alloc/free of policy structure

Separate out the allocation of the cpufreq policy structure (along with
its error handling) to a helper function. This makes the code easier to
read and also helps with some upcoming code reorganization.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c