]> 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)
commitfd38bc5c0d85067dde0a24c6571f05abd30cb9c9
treebe5bbeab767ab58bfcb3362fd44533cac0e9d5b1
parentccc40288ad480e8b5aa1cbdc9c5c9bb2347b20d8
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