]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Replace recover_policy with new_policy in cpufreq_online()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Jul 2015 01:08:57 +0000 (03:08 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 31 Jul 2015 20:00:31 +0000 (22:00 +0200)
commita8576767057786981c2e369890c417ccec7bfacf
treedc0234510d923946164bc1fe5beaeef7556d22bd
parent3ea9eeea822d017dc12ee79c60b01d4525d883d5
cpufreq: Replace recover_policy with new_policy in cpufreq_online()

The recover_policy is unsed in cpufreq_online() to indicate whether
a new policy object is created or an existing one is reinitialized.

The "recover" part of the name is slightly confusing (it should be
"reinitialization" rather than "recovery") and the logical not (!)
operator is applied to it in almost all of the checks it is used in,
so replace that variable with a new one called "new_policy" that
will be true in the case of a new policy creation.

While at it, drop one of the labels that is jumped to from only
one spot.

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