From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752652AbcLIS31 (ORCPT ); Fri, 9 Dec 2016 13:29:27 -0500 Received: from mail.skyhub.de ([78.46.96.112]:56045 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064AbcLIS3Z (ORCPT ); Fri, 9 Dec 2016 13:29:25 -0500 From: Borislav Petkov To: Thomas Gleixner Cc: Jiri Olsa , X86 ML , LKML Subject: [PATCH 1/5] x86/cpufeature: Provide helper to set bugs bits Date: Fri, 9 Dec 2016 19:29:08 +0100 Message-Id: <20161209182912.2726-2-bp@alien8.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161209182912.2726-1-bp@alien8.de> References: <20161209182912.2726-1-bp@alien8.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Will be used in a later patch to set bug bits for bugs which need late detection. Signed-off-by: Borislav Petkov --- 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 1d2b69fc0ceb..d59c15c3defd 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 -- 2.11.0