From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756670AbcARX0O (ORCPT ); Mon, 18 Jan 2016 18:26:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:36769 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752745AbcARX0L (ORCPT ); Mon, 18 Jan 2016 18:26:11 -0500 Date: Tue, 19 Jan 2016 00:25:47 +0100 From: Borislav Petkov To: "H. Peter Anvin" Cc: Andy Lutomirski , Brian Gerst , the arch/x86 maintainers , Linux Kernel Mailing List , Ingo Molnar , Denys Vlasenko , Linus Torvalds Subject: Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init Message-ID: <20160118232547.GK12651@pd.tnic> References: <20160116193658.GC32085@pd.tnic> <20160117103337.GC8549@pd.tnic> <20160118181457.GG12651@pd.tnic> <20160118183921.GH12651@pd.tnic> <569D40CE.5090506@zytor.com> <20160118230554.GJ12651@pd.tnic> <3D4E057B-AB03-4C12-B59D-774E8954C742@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3D4E057B-AB03-4C12-B59D-774E8954C742@zytor.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2016 at 03:13:00PM -0800, H. Peter Anvin wrote: > The optimization has always been there, the question is how often it > actually kicks in. Luckily, I have this disassembler tool which dumps the alternatives sections in a more readable format. I can dump all the static_cpu_has() call sites tomorrow and we can see what gcc generates. ;-} -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --