]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: governor: CPUFREQ_GOV_LIMITS never fails
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 May 2016 22:59:27 +0000 (00:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 May 2016 12:34:16 +0000 (14:34 +0200)
commit6d1fdde966f21fedfbc897a36f84dcd4db57ac3d
tree1816b50de3b3a99cafbef84a9cb0ad5c6599c049
parenteafb69e30fd2c5eb541ab8464cb7c24186e23039
cpufreq: governor: CPUFREQ_GOV_LIMITS 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_LIMITS (unless invoked with incorrect arguments
which doesn't matter anyway) and had it ever failed, the result of
it wouldn't have been very clean.

For this reason, rearrange the code in the core to ignore the return
value of cpufreq_governor() when called with event equal to
CPUFREQ_GOV_LIMITS.

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