提交 08c373e5 编写于 作者: R Rafael J. Wysocki 提交者: Ingo Molnar

sched/idle: Make cpuidle_idle_call() void

The only value ever returned by cpuidle_idle_call() is 0 and its
only caller ignores that value anyway, so make it void.
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/4717784.WmVEpDoliM@vostro.rjw.lanSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 37352273
...@@ -67,9 +67,8 @@ void __weak arch_cpu_idle(void) ...@@ -67,9 +67,8 @@ void __weak arch_cpu_idle(void)
* cpuidle_idle_call - the main idle function * cpuidle_idle_call - the main idle function
* *
* NOTE: no locks or semaphores should be used here * NOTE: no locks or semaphores should be used here
* return non-zero on failure
*/ */
static int cpuidle_idle_call(void) static void cpuidle_idle_call(void)
{ {
struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices); struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices);
struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev);
...@@ -82,7 +81,7 @@ static int cpuidle_idle_call(void) ...@@ -82,7 +81,7 @@ static int cpuidle_idle_call(void)
*/ */
if (need_resched()) { if (need_resched()) {
local_irq_enable(); local_irq_enable();
return 0; return;
} }
/* /*
...@@ -177,8 +176,6 @@ static int cpuidle_idle_call(void) ...@@ -177,8 +176,6 @@ static int cpuidle_idle_call(void)
rcu_idle_exit(); rcu_idle_exit();
start_critical_timings(); start_critical_timings();
return 0;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册