]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: Combine cpuidle_enabled() with cpuidle_select()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2014 22:13:47 +0000 (00:13 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2014 22:13:47 +0000 (00:13 +0200)
commitc58968003d47b710dcd545aedb130a803891224e
tree5d359e67396365456f73496344e57bd2976d1c8c
parenta7563090e73b40f192e8d59084ab7d606cee6737
cpuidle: Combine cpuidle_enabled() with cpuidle_select()

Since both cpuidle_enabled() and cpuidle_select() are only called by
cpuidle_idle_call(), it is not really useful to keep them separate
and combining them will help to avoid complicating cpuidle_idle_call()
even further if governors are changed to return error codes sometimes.

This code modification shouldn't lead to any functional changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c
include/linux/cpuidle.h
kernel/sched/idle.c