]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: governor: CPUFREQ_GOV_STOP never fails
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 May 2016 13:14:12 +0000 (15:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 May 2016 00:28:29 +0000 (02:28 +0200)
commit75daafc17452e3595cb775e3289dceeae201666b
treebe5bbeab767ab58bfcb3362fd44533cac0e9d5b1
parent7e4cc6481b4c3866070b481beebc763e29efefec
cpufreq: governor: CPUFREQ_GOV_STOP never fails

None of the cpufreq governors currently in the tree will ever fail
an invocation of the ->governor() callback with the event argument
equal to CPUFREQ_GOV_STOP (unless invoked with incorrect arguments
which doesn't matter anyway) and it is rather difficult to imagine
a valid reason for such a failure.

Accordingly, rearrange the code in the core to make it clear that
this call never fails.

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