sched / idle: Make cpuidle_idle_call() void
PATCH 1/1 sched / idle: Make cpuidle_idle_call() void
From: Rafael J. Wysocki <[email protected]>
The only value ever returned by cpuidle_idle_call() is 0 and its only caller ignores that value anyway, so make it void.
--- kernel/sched/idle.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
kernel/sched/idle.c +2 -5
@@ -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 ; }/*
Peter Zijlstra
maintainerQuoted 6 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
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 <[email protected]>
Thanks!
Quoted 9 lines · Peter Zijlstra
Quoted 6 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
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 <[email protected]>Thanks!
OK, thanks, so should it go through my tree or through tip?
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Peter Zijlstra
maintainerQuoted 4 lines · Rafael J. Wysocki
Quoted 3 lines · Peter Zijlstra
Quoted 2 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
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 <[email protected]>Thanks!
OK, thanks, so should it go through my tree or through tip?
I'll take it through tip where there's more patches that touch this code.
tip-bot for Rafael J. Wysocki
merge bot[tip:sched/core] sched/idle: Make cpuidle_idle_call() void
In reply to Rafael J. Wysockisched/idle: Make cpuidle_idle_call() void
Commit-ID: 08c373e5123b4595588ae1a7aa7e00a046c61cc6 Gitweb: http://git.kernel.org/tip/08c373e5123b4595588ae1a7aa7e00a046c61cc6 Author: Rafael J. Wysocki <[email protected]> AuthorDate: Mon, 21 Apr 2014 01:26:58 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 8 May 2014 09:17:00 +0200
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.
--- kernel/sched/idle.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
kernel/sched/idle.c +2 -5
@@ -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 ; }/*