]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit45482c703b8c7e86e339e92f186cadd9a735fd0e
treebe5bbeab767ab58bfcb3362fd44533cac0e9d5b1
parent36be3418eb769c66bc16eb1c9b402591cf1219b7
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