[RFC PATCH 1/9] arm: avoid using on_each_cpu hard coded ret value
Gilad Ben-Yossef
gilad at benyossef.com
Tue Jan 3 09:19:05 EST 2012
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 <mina86 at mina86.com>
CC: Will Deacon <will.deacon at arm.com>
CC: Peter Zijlstra <a.p.zijlstra at chello.nl>
CC: Paul Mackerras <paulus at samba.org>
CC: Ingo Molnar <mingo at elte.hu>
CC: Arnaldo Carvalho de Melo <acme at ghostprotocols.net>
CC: Russell King <linux at arm.linux.org.uk>
CC: Grant Likely <grant.likely at secretlab.ca>
CC: Rob Herring <rob.herring at calxeda.com>
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 88b0941..bfd58d8 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -617,7 +617,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);
return 0;
}
arch_initcall(cpu_pmu_reset);
--
1.7.0.4
More information about the linux-arm-kernel
mailing list