From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753007AbcLIUbO (ORCPT ); Fri, 9 Dec 2016 15:31:14 -0500 Received: from terminus.zytor.com ([198.137.202.10]:34656 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752758AbcLIUbM (ORCPT ); Fri, 9 Dec 2016 15:31:12 -0500 Date: Fri, 9 Dec 2016 12:30:56 -0800 From: tip-bot for Borislav Petkov Message-ID: Cc: linux-kernel@vger.kernel.org, jolsa@redhat.com, hpa@zytor.com, mingo@kernel.org, bp@suse.de, tglx@linutronix.de Reply-To: hpa@zytor.com, jolsa@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, bp@suse.de, mingo@kernel.org In-Reply-To: <20161209182912.2726-2-bp@alien8.de> References: <20161209182912.2726-2-bp@alien8.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/idle] x86/cpufeature: Provide helper to set bugs bits Git-Commit-ID: a588b9836447ac683a8f63949ad55265813826f5 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a588b9836447ac683a8f63949ad55265813826f5 Gitweb: http://git.kernel.org/tip/a588b9836447ac683a8f63949ad55265813826f5 Author: Borislav Petkov AuthorDate: Fri, 9 Dec 2016 19:29:08 +0100 Committer: Thomas Gleixner CommitDate: Fri, 9 Dec 2016 21:23:20 +0100 x86/cpufeature: Provide helper to set bugs bits Will be used in a later patch to set bug bits for bugs which need late detection. Signed-off-by: Borislav Petkov Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20161209182912.2726-2-bp@alien8.de Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/cpufeature.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index 1d2b69f..d59c15c 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h @@ -204,6 +204,7 @@ static __always_inline __pure bool _static_cpu_has(u16 bit) #define static_cpu_has_bug(bit) static_cpu_has((bit)) #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit)) +#define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit)) #define MAX_CPU_FEATURES (NCAPINTS * 32) #define cpu_have_feature boot_cpu_has