Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] sched / idle: Make cpuidle_idle_call() void
@ 2014-04-20 23:26 Rafael J. Wysocki
  2014-04-22 11:49 ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2014-04-20 23:26 UTC (permalink / raw)
  To: Linux PM list
  Cc: Linux Kernel Mailing List, Daniel Lezcano, Ingo Molnar,
	Peter Zijlstra

From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

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>
---
 kernel/sched/idle.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Index: linux-pm/kernel/sched/idle.c
===================================================================
--- linux-pm.orig/kernel/sched/idle.c
+++ linux-pm/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);
@@ -84,7 +83,7 @@ static int cpuidle_idle_call(void)
 	if (current_clr_polling_and_test()) {
 		local_irq_enable();
 		__current_set_polling();
-		return 0;
+		return;
 	}
 
 	/*
@@ -189,8 +188,6 @@ static int cpuidle_idle_call(void)
 
 	rcu_idle_exit();
 	start_critical_timings();
-
-	return 0;
 }
 
 /*

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-23  5:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-20 23:26 [PATCH] sched / idle: Make cpuidle_idle_call() void Rafael J. Wysocki
2014-04-22 11:49 ` Peter Zijlstra
2014-04-22 23:36   ` Rafael J. Wysocki
2014-04-23  5:36     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox