From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH] x86: Add optimized popcnt variants Date: Fri, 19 Feb 2010 08:53:32 -0800 Message-ID: <4B7EC20C.30607@zytor.com> References: <4B758FC0.1020600@zytor.com> <20100212174751.GD3114@aftab> <4B75A66A.70005@zytor.com> <4B7BF5D6.3030701@suse.cz> <20100217172040.GC13429@aftab> <4B7C27D8.9050408@suse.cz> <4B7C29C1.10906@suse.cz> <20100218061923.GA1594@liondog.tnic> <20100219142205.GA32533@aftab> <4B7EB6EF.9010405@zytor.com> <20100219164512.GA492@aftab> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Michal Marek , linux-kbuild , Peter Zijlstra , Andrew Morton , Wu Fengguang , LKML , Jamie Lokier , Roland Dreier , Al Viro , "linux-fsdevel@vger.kernel.org" , Ingo Molnar , Brian Gerst To: Borislav Petkov Return-path: In-Reply-To: <20100219164512.GA492@aftab> Sender: linux-kbuild-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 02/19/2010 08:45 AM, Borislav Petkov wrote: >> >> You're still not inlining these. They should be: there is absolutely no >> reason for code size to not inline them anymore. > > Isn't better to have only those 4 locations for apply_alternatives to > patch wrt to popcnt instead of sprinkling alternatives sections around > the kernel in every callsite of hweight and its users? Or is the aim to > optimize even that "call __arch_hweightXX" away? > That's the idea, yes. We use inline alternatives in quite a few other places. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.