From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754169Ab2AHQOV (ORCPT ); Sun, 8 Jan 2012 11:14:21 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:44478 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753968Ab2AHQOU (ORCPT ); Sun, 8 Jan 2012 11:14:20 -0500 Date: Sun, 8 Jan 2012 16:14:01 +0000 From: Russell King - ARM Linux To: Gilad Ben-Yossef Cc: linux-kernel@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Benjamin Herrenschmidt , Paul Mackerras , Grant Likely , Rob Herring , linuxppc-dev@lists.ozlabs.org, devicetree-discuss@lists.ozlabs.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, Will Deacon , Peter Zijlstra , Arnaldo Carvalho de Melo , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH v2 8/9] smp: refactor on_each_cpu to void returning func Message-ID: <20120108161401.GE21765@n2100.arm.linux.org.uk> References: <1326029549-2794-1-git-send-email-gilad@benyossef.com> <1326029549-2794-9-git-send-email-gilad@benyossef.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1326029549-2794-9-git-send-email-gilad@benyossef.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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@lists.freedesktop.org > CC: Benjamin Herrenschmidt > CC: Paul Mackerras > CC: Grant Likely > CC: Rob Herring > CC: linuxppc-dev@lists.ozlabs.org > CC: devicetree-discuss@lists.ozlabs.org > CC: Richard Henderson > CC: Ivan Kokshaysky > CC: Matt Turner > CC: linux-alpha@vger.kernel.org > CC: Thomas Gleixner > CC: Ingo Molnar > CC: "H. Peter Anvin" > CC: x86@kernel.org > CC: Tony Luck > CC: Fenghua Yu > CC: linux-ia64@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.