From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [RFC/PATCH 3/3] ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions Date: Mon, 23 Nov 2015 13:16:53 -0800 Message-ID: <20151123211653.GF19156@codeaurora.org> References: <1448068997-26631-1-git-send-email-sboyd@codeaurora.org> <1448068997-26631-4-git-send-email-sboyd@codeaurora.org> <20151123204955.GC19156@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:60412 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753806AbbKWVQz (ORCPT ); Mon, 23 Nov 2015 16:16:55 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Nicolas Pitre , Arnd Bergmann , Steven Rostedt On 11/23, M=E5ns Rullg=E5rd wrote: > Stephen Boyd writes: >=20 > > On 11/21, M=E5ns Rullg=E5rd wrote: > >>=20 > >> These functions are rather similar. Perhaps they could be combine= d > >> somehow. > >>=20 > > > > Yes. I have this patch on top, just haven't folded it in because > > it doesn't reduce the lines of code. >=20 > I don't see any reason to split it anyhow. The end result isn't any > harder to understand than the intermediate. Yep. >=20 > > ----8<---- > > From: Stephen Boyd > > Subject: [PATCH] consolidate with module code > > > > Signed-off-by: Stephen Boyd > > --- > > arch/arm/include/asm/setup.h | 3 +++ > > arch/arm/kernel/module.c | 16 +++++-------- > > arch/arm/kernel/setup.c | 54 +++++++++++++++++++++++++++-----= ------------ > > 3 files changed, 42 insertions(+), 31 deletions(-) > > > > diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/se= tup.h > > index e0adb9f1bf94..3f251cdb94ef 100644 > > --- a/arch/arm/include/asm/setup.h > > +++ b/arch/arm/include/asm/setup.h > > @@ -25,4 +25,7 @@ extern int arm_add_memory(u64 start, u64 size); > > extern void early_print(const char *str, ...); > > extern void dump_machine_table(void); > > > > +extern void patch_uidiv(void *addr, size_t size); > > +extern void patch_idiv(void *addr, size_t size); >=20 > Why not call things sdiv and udiv like the actual instructions? >=20 Sure. I'll fold this into v2. --=20 Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project