cpufreq: handle calls to ->target_index() in separate routine
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 21 May 2014 08:59:29 +0000 (14:29 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 May 2014 23:27:38 +0000 (01:27 +0200)
commit8d65775d17941d6d41f5913fc6a99a134c588e01
tree008d4a6576e1859884384a99b3fefc110e7c3094
parent1ef546f22f14eea624681aa2793f4f07b051b68d
cpufreq: handle calls to ->target_index() in separate routine

Handling calls to ->target_index() has got complex over time and might become
more complex. So, its better to take target_index() bits out in another routine
__target_index() for better code readability. Shouldn't have any functional
impact.

Tested-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c