[RFC PATCH v2 1/9] arm: avoid using on_each_cpu hard coded ret value

2012-01-12 Thread Gilad Ben-Yossef
on_each_cpu always returns a hard coded return code of zero. Removing all tests based on this return value saves run time cycles for compares and code bloat for branches. Signed-off-by: Gilad Ben-Yossef gi...@benyossef.com Acked-by: Peter Zijlstra a.p.zijls...@chello.nl Reviewed-by: Michal

Re: [RFC PATCH v2 1/9] arm: avoid using on_each_cpu hard coded ret value

2012-01-12 Thread Gilad Ben-Yossef
On Sun, Jan 8, 2012 at 6:12 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: SNIP diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c index 5bb91bf..6e9acb7 100644 --- a/arch/arm/kernel/perf_event.c +++ b/arch/arm/kernel/perf_event.c @@ -616,7 +616,7 @@ static

Re: [RFC PATCH v2 1/9] arm: avoid using on_each_cpu hard coded ret value

2012-01-08 Thread Russell King - ARM Linux
On Sun, Jan 08, 2012 at 03:32:21PM +0200, Gilad Ben-Yossef wrote: on_each_cpu always returns a hard coded return code of zero. Removing all tests based on this return value saves run time cycles for compares and code bloat for branches. Signed-off-by: Gilad Ben-Yossef gi...@benyossef.com