diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-04-20 19:26:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-05-08 03:17:00 -0400 |
commit | 08c373e5123b4595588ae1a7aa7e00a046c61cc6 (patch) | |
tree | 074ff15f3085532d854789497f811810f44d9991 /kernel/sched/idle.c | |
parent | 37352273ad48f2d177ed1b06ced32d5536b773fb (diff) |
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>
Diffstat (limited to 'kernel/sched/idle.c')
-rw-r--r-- | kernel/sched/idle.c | 7 |
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) | |||
67 | * cpuidle_idle_call - the main idle function | 67 | * cpuidle_idle_call - the main idle function |
68 | * | 68 | * |
69 | * NOTE: no locks or semaphores should be used here | 69 | * NOTE: no locks or semaphores should be used here |
70 | * return non-zero on failure | ||
71 | */ | 70 | */ |
72 | static int cpuidle_idle_call(void) | 71 | static void cpuidle_idle_call(void) |
73 | { | 72 | { |
74 | struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices); | 73 | struct cpuidle_device *dev = __this_cpu_read(cpuidle_devices); |
75 | struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); | 74 | struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); |
@@ -82,7 +81,7 @@ static int cpuidle_idle_call(void) | |||
82 | */ | 81 | */ |
83 | if (need_resched()) { | 82 | if (need_resched()) { |
84 | local_irq_enable(); | 83 | local_irq_enable(); |
85 | return 0; | 84 | return; |
86 | } | 85 | } |
87 | 86 | ||
88 | /* | 87 | /* |
@@ -177,8 +176,6 @@ exit_idle: | |||
177 | 176 | ||
178 | rcu_idle_exit(); | 177 | rcu_idle_exit(); |
179 | start_critical_timings(); | 178 | start_critical_timings(); |
180 | |||
181 | return 0; | ||
182 | } | 179 | } |
183 | 180 | ||
184 | /* | 181 | /* |