[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160507112308.GA2612@ravnborg.org>
Date: Sat, 7 May 2016 13:23:56 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: zengzhaoxiu@....com
Cc: akpm@...ux-foundation.org, linux@...izon.com, peterz@...radead.org,
jjuran@...il.com, James.Bottomley@...senPartnership.com,
geert@...ux-m68k.org, dalias@...c.org, davem@...emloft.net,
Zhaoxiu Zeng <zhaoxiu.zeng@...il.com>,
Richard Henderson <rth@...ddle.net>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
Matt Turner <mattst88@...il.com>,
Vineet Gupta <vgupta@...opsys.com>,
Russell King <linux@....linux.org.uk>,
Yoshinori Sato <ysato@...rs.sourceforge.jp>,
James Hogan <james.hogan@...tec.com>,
Michal Simek <monstr@...str.eu>,
Ralf Baechle <ralf@...ux-mips.org>,
Ley Foon Tan <lftan@...era.com>,
Jonas Bonn <jonas@...thpole.se>,
"James E.J. Bottomley" <jejb@...isc-linux.org>,
Helge Deller <deller@....de>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Chen Liqin <liqin.linux@...il.com>,
Lennox Wu <lennox.wu@...il.com>, linux-kernel@...r.kernel.org,
linux-alpha@...r.kernel.org, linux-snps-arc@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
uclinux-h8-devel@...ts.sourceforge.jp,
linux-m68k@...ts.linux-m68k.org, linux-metag@...r.kernel.org,
linux-mips@...ux-mips.org, nios2-dev@...ts.rocketboards.org,
linux-parisc@...r.kernel.org, linux-s390@...r.kernel.org,
linux-sh@...r.kernel.org, sparclinux@...r.kernel.org
Subject: Re: [patch V4] lib: GCD: Use binary GCD algorithm instead of
Euclidean
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index 57ffaf2..ca675ed 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -42,6 +42,7 @@ config SPARC
> select ODD_RT_SIGACTION
> select OLD_SIGSUSPEND
> select ARCH_HAS_SG_CHAIN
> + select CPU_NO_EFFICIENT_FFS
>
> config SPARC32
> def_bool !64BIT
sparc64 have an efficient ffs implementation.
We use run-time patching to use the proper version
depending on the actual sparc cpu.
As this is determinded at config time, then let the
sparc cpu that has the efficient ffs benefit from this.
In other words - select CPU_NO_EFFICIENT_FFS only for SPARC32.
Sam
Powered by blists - more mailing lists