From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934286AbcATPBj (ORCPT ); Wed, 20 Jan 2016 10:01:39 -0500 Received: from mx2.suse.de ([195.135.220.15]:57973 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933901AbcATPBh (ORCPT ); Wed, 20 Jan 2016 10:01:37 -0500 Date: Wed, 20 Jan 2016 16:01:09 +0100 From: Borislav Petkov To: "H. Peter Anvin" Cc: Brian Gerst , the arch/x86 maintainers , Linux Kernel Mailing List , Ingo Molnar , Denys Vlasenko , Andy Lutomirski , Linus Torvalds Subject: Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init Message-ID: <20160120150109.GF23350@pd.tnic> References: <20160116193658.GC32085@pd.tnic> <20160117103337.GC8549@pd.tnic> <20160118181457.GG12651@pd.tnic> <20160118185107.GI12651@pd.tnic> <20160119011026.GA12911@pd.tnic> <20160119092213.GA15071@pd.tnic> <569F06B9.4060903@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <569F06B9.4060903@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 Tue, Jan 19, 2016 at 08:02:01PM -0800, H. Peter Anvin wrote: > ... "i" (1 << (bit & 7)), > "m" (((const char *)boot_cpu_data->x86_capability)[bit >> 3]) ... Nice! I was going to do: "i" (1 << (bit & 31)), "m" (((boot_cpu_data->x86_capability)[bit >> 5])) :-) -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --