summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/sched/idle.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c
index 88a6bc43738b..34083c9ac976 100644
--- a/kernel/sched/idle.c
+++ b/kernel/sched/idle.c
@@ -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);
@@ -82,7 +81,7 @@ static int cpuidle_idle_call(void)
*/
if (need_resched()) {
local_irq_enable();
- return 0;
+ return;
}
/*
@@ -177,8 +176,6 @@ exit_idle:
rcu_idle_exit();
start_critical_timings();
-
- return 0;
}
/*