mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
x86/coco/sev: Convert has_cpuflag() to use cpu_feature_enabled()
Drop one redundant definition, while at it. There should be no functional changes. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20251031122122.GKaQSpwhLvkinKKbjG@fat_crate.local
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <asm/setup_data.h>
|
||||
|
||||
#ifndef __BOOT_COMPRESSED
|
||||
#define has_cpuflag(f) boot_cpu_has(f)
|
||||
#define has_cpuflag(f) cpu_feature_enabled(f)
|
||||
#else
|
||||
#undef WARN
|
||||
#define WARN(condition, format...) (!!(condition))
|
||||
|
||||
@@ -352,7 +352,6 @@ fault:
|
||||
|
||||
#define sev_printk(fmt, ...) printk(fmt, ##__VA_ARGS__)
|
||||
#define error(v)
|
||||
#define has_cpuflag(f) boot_cpu_has(f)
|
||||
|
||||
#include "vc-shared.c"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
#ifndef __BOOT_COMPRESSED
|
||||
#define has_cpuflag(f) boot_cpu_has(f)
|
||||
#define has_cpuflag(f) cpu_feature_enabled(f)
|
||||
#endif
|
||||
|
||||
static enum es_result vc_check_opcode_bytes(struct es_em_ctxt *ctxt,
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <asm/setup.h>
|
||||
|
||||
#define debug_putstr(v) early_printk("%s", v)
|
||||
#define has_cpuflag(f) boot_cpu_has(f)
|
||||
#define has_cpuflag(f) cpu_feature_enabled(f)
|
||||
#define get_boot_seed() kaslr_offset()
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user