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:14:01 +0000 Subject: [RFC PATCH v2 8/9] smp: refactor on_each_cpu to void returning func In-Reply-To: <1326029549-2794-9-git-send-email-gilad@benyossef.com> References: <1326029549-2794-1-git-send-email-gilad@benyossef.com> <1326029549-2794-9-git-send-email-gilad@benyossef.com> Message-ID: <20120108161401.GE21765@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:28PM +0200, Gilad Ben-Yossef wrote: > 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. > > Signed-off-by: Gilad Ben-Yossef > Acked-by: Peter Zijlstra > Reviewed-by: 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-dev at lists.ozlabs.org > CC: devicetree-discuss at lists.ozlabs.org > CC: Richard Henderson > CC: Ivan Kokshaysky > CC: Matt Turner > CC: linux-alpha at vger.kernel.org > CC: Thomas Gleixner > CC: Ingo Molnar > CC: "H. Peter Anvin" > CC: x86 at kernel.org > CC: Tony Luck > CC: Fenghua Yu > CC: linux-ia64 at vger.kernel.org > CC: Will Deacon > CC: Peter Zijlstra > CC: Arnaldo Carvalho de Melo > CC: Russell King As there's only one place in the ARM code where we look at the return value, and you've patched that away in patch 1, this looks fine. I've not checked for users outside of arch/arm, so: Acked-by: Russell King Thanks.