diff options
author | Borislav Petkov (AMD) <bp@alien8.de> | 2023-05-08 12:44:28 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-05-09 12:53:16 +0200 |
commit | da86eb9611840772a459693832e54c63cbcc040a (patch) | |
tree | 2b01d22fdfa34c2f724dc2636cec1619eaf238d0 /arch/x86/coco/tdx/tdx.c | |
parent | x86/sev: Get rid of special sev_es_enable_key (diff) | |
download | linux-da86eb9611840772a459693832e54c63cbcc040a.tar.gz linux-da86eb9611840772a459693832e54c63cbcc040a.tar.bz2 linux-da86eb9611840772a459693832e54c63cbcc040a.zip |
x86/coco: Get rid of accessor functions
cc_vendor is __ro_after_init and thus can be used directly.
No functional changes.
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230508121957.32341-1-bp@alien8.de
Diffstat (limited to 'arch/x86/coco/tdx/tdx.c')
-rw-r--r-- | arch/x86/coco/tdx/tdx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/coco/tdx/tdx.c b/arch/x86/coco/tdx/tdx.c index e146b599260f..971c6cfb15dd 100644 --- a/arch/x86/coco/tdx/tdx.c +++ b/arch/x86/coco/tdx/tdx.c @@ -852,7 +852,7 @@ void __init tdx_early_init(void) setup_force_cpu_cap(X86_FEATURE_TDX_GUEST); - cc_set_vendor(CC_VENDOR_INTEL); + cc_vendor = CC_VENDOR_INTEL; tdx_parse_tdinfo(&cc_mask); cc_set_mask(cc_mask); |