Skip to content

Commit

Permalink
sched/idle: Make cpuidle_idle_call() void
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rafaeljw authored and Ingo Molnar committed May 8, 2014
1 parent 3735227 commit 08c373e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions kernel/sched/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ void __weak arch_cpu_idle(void)
* cpuidle_idle_call - the main idle function
*
* 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_driver *drv = cpuidle_get_cpu_driver(dev);
Expand All @@ -82,7 +81,7 @@ static int cpuidle_idle_call(void)
*/
if (need_resched()) {
local_irq_enable();
return 0;
return;
}

/*
Expand Down Expand Up @@ -177,8 +176,6 @@ static int cpuidle_idle_call(void)

rcu_idle_exit();
start_critical_timings();

return 0;
}

/*
Expand Down

0 comments on commit 08c373e

Please sign in to comment.