Skip to content

Commit 08c373e

Browse files
rafaeljwingomolnar
authored andcommitted
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: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/4717784.WmVEpDoliM@vostro.rjw.lan Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 3735227 commit 08c373e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎kernel/sched/idle.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ void __weak arch_cpu_idle(void)
6767
* cpuidle_idle_call - the main idle function
6868
*
6969
* NOTE: no locks or semaphores should be used here
70-
* return non-zero on failure
7170
*/
72-
static int cpuidle_idle_call(void)
71+
static void cpuidle_idle_call(void)
7372
{
7473
struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices);
7574
struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev);
@@ -82,7 +81,7 @@ static int cpuidle_idle_call(void)
8281
*/
8382
if (need_resched()) {
8483
local_irq_enable();
85-
return 0;
84+
return;
8685
}
8786

8887
/*
@@ -177,8 +176,6 @@ static int cpuidle_idle_call(void)
177176

178177
rcu_idle_exit();
179178
start_critical_timings();
180-
181-
return 0;
182179
}
183180

184181
/*

0 commit comments

Comments
 (0)