[RFC PATCH 0/9] Remove useless on_each_cpu return value

2012-01-03 Thread Gilad Ben-Yossef
Yu CC: linux-i...@vger.kernel.org CC: Will Deacon CC: Peter Zijlstra CC: Arnaldo Carvalho de Melo CC: Russell King CC: linux-arm-ker...@lists.infradead.org Gilad Ben-Yossef (9): arm: avoid using on_each_cpu hard coded ret value ia64: avoid using on_each_cpu hard coded ret value x86: avoid using o

[RFC PATCH 7/9] drm: avoid using on_each_cpu hard coded ret value

2012-01-03 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. CC: Michal Nazarewicz CC: David Airlie CC: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/drm_cache.c |3 +-- 1 fi

[RFC PATCH 8/9] smp: refactor on_each_cpu to void returning func

2012-01-03 Thread Gilad Ben-Yossef
on_each_cpu returns the retunr value of smp_call_function which is hard coded to 0. Refactor on_each_cpu to a void function and the few callers that check the return value to save compares and branches. CC: Michal Nazarewicz CC: David Airlie CC: dri-devel@lists.freedesktop.org CC: Benjamin Herr

Re: [RFC PATCH 0/9] Remove useless on_each_cpu return value

2012-01-03 Thread Gilad Ben-Yossef
2012/1/3 Michal Nazarewicz : > On Tue, 03 Jan 2012 15:19:04 +0100, Gilad Ben-Yossef > wrote: >> >> on_each_cpu() returns as its own return value the return value of >> smp_call_function(). smp_call_function() in turn returns a hard >> coded value of zero. >> &g

[RFC PATCH v2 0/9] Remove useless on_each_cpu return value

2012-01-08 Thread Gilad Ben-Yossef
t git://github.com/gby/linux.git Signed-off-by: Gilad Ben-Yossef Acked-by: Peter Zijlstra Reviewed-by: Michal Nazarewicz CC: Michal Nazarewicz CC: David Airlie CC: dri-devel@lists.freedesktop.org CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Grant Likely CC: Rob Herring CC: lin

[RFC PATCH v2 7/9] drm: avoid using on_each_cpu hard coded ret value

2012-01-08 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 Acked-by: Peter Zijlstra Reviewed-by: Michal Nazarewicz CC: David Airlie CC: dri-devel

[RFC PATCH 0/9] Remove useless on_each_cpu return value

2012-01-03 Thread Gilad Ben-Yossef
2012/1/3 Michal Nazarewicz : > On Tue, 03 Jan 2012 15:19:04 +0100, Gilad Ben-Yossef > wrote: >> >> on_each_cpu() returns as its own return value the return value of >> smp_call_function(). smp_call_function() in turn returns a hard >> coded value of zero. >> &g

[RFC PATCH 0/9] Remove useless on_each_cpu return value

2012-01-03 Thread Gilad Ben-Yossef
Fenghua Yu CC: linux-ia64 at vger.kernel.org CC: Will Deacon CC: Peter Zijlstra CC: Arnaldo Carvalho de Melo CC: Russell King CC: linux-arm-kernel at lists.infradead.org Gilad Ben-Yossef (9): arm: avoid using on_each_cpu hard coded ret value ia64: avoid using on_each_cpu hard coded ret val

[RFC PATCH 7/9] drm: avoid using on_each_cpu hard coded ret value

2012-01-03 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. CC: Michal Nazarewicz CC: David Airlie CC: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/drm_cache.c |3 +-- 1

[RFC PATCH 8/9] smp: refactor on_each_cpu to void returning func

2012-01-03 Thread Gilad Ben-Yossef
on_each_cpu returns the retunr value of smp_call_function which is hard coded to 0. Refactor on_each_cpu to a void function and the few callers that check the return value to save compares and branches. CC: Michal Nazarewicz CC: David Airlie CC: dri-devel at lists.freedesktop.org CC: Benjamin H

[RFC PATCH v2 0/9] Remove useless on_each_cpu return value

2012-01-08 Thread Gilad Ben-Yossef
t git://github.com/gby/linux.git Signed-off-by: Gilad Ben-Yossef Acked-by: Peter Zijlstra Reviewed-by: Michal Nazarewicz CC: Michal Nazarewicz CC: David Airlie CC: dri-devel at lists.freedesktop.org CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Grant Likely CC: Rob Herring CC: linuxppc-d

[RFC PATCH v2 7/9] drm: avoid using on_each_cpu hard coded ret value

2012-01-08 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 Acked-by: Peter Zijlstra Reviewed-by: Michal Nazarewicz CC: David Airlie CC: dri-devel at