]> 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)
commit38a416b90031fd168433efab4a962096cf4600b2
treedc0234510d923946164bc1fe5beaeef7556d22bd
parentef082191d76358c6f391e8fc74b662f63af375b1
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