From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Sun, 8 Jan 2012 16:12:12 +0000 Subject: [RFC PATCH v2 1/9] arm: avoid using on_each_cpu hard coded ret value In-Reply-To: <1326029549-2794-2-git-send-email-gilad@benyossef.com> References: <1326029549-2794-1-git-send-email-gilad@benyossef.com> <1326029549-2794-2-git-send-email-gilad@benyossef.com> Message-ID: <20120108161212.GD21765@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 > Acked-by: Peter Zijlstra > Reviewed-by: Michal Nazarewicz > CC: Will Deacon > CC: Peter Zijlstra > CC: Paul Mackerras > CC: Ingo Molnar > CC: Arnaldo Carvalho de Melo > CC: Russell King Reviewed-by: Russell King > CC: Grant Likely > CC: Rob Herring > CC: linux-arm-kernel at lists.infradead.org > CC: devicetree-discuss at lists.ozlabs.org > --- > arch/arm/kernel/perf_event.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > 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 int __init > cpu_pmu_reset(void) > { > if (cpu_pmu && cpu_pmu->reset) > - return on_each_cpu(cpu_pmu->reset, NULL, 1); > + on_each_cpu(cpu_pmu->reset, NULL, 1); There's not much to review here... Thanks. > return 0; > } > arch_initcall(cpu_pmu_reset); > -- > 1.7.0.4 >