From e2f7b1fc5129fcc8b25840d730dbc326c6c89d4f Mon Sep 17 00:00:00 2001 From: Tw Date: Tue, 26 Apr 2022 09:22:14 +0800 Subject: [PATCH] hv: remove obsolete declarations related to RDT Since CAT support for hybrid platform is landed, let's remove some old declarations which are no longer used. Tracked-On: #6690 Signed-off-by: Tw --- hypervisor/arch/x86/rdt.c | 2 -- hypervisor/include/arch/x86/asm/board.h | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hypervisor/arch/x86/rdt.c b/hypervisor/arch/x86/rdt.c index 3a9e5f78a..7f01d0c27 100644 --- a/hypervisor/arch/x86/rdt.c +++ b/hypervisor/arch/x86/rdt.c @@ -23,8 +23,6 @@ const uint16_t hv_clos = 0U; * each resource's clos max value to have consistent allocation. */ #ifdef CONFIG_RDT_ENABLED -/* TODO: once config-tool is ready to generate this information for us, we could remove these static definitions */ -extern struct rdt_type res_cap_info[RDT_NUM_RESOURCES]; /* * @pre res == RDT_RESOURCE_L3 || res == RDT_RESOURCE_L2 || res == RDT_RESOURCE_MBA diff --git a/hypervisor/include/arch/x86/asm/board.h b/hypervisor/include/arch/x86/asm/board.h index 15105d625..a8e7be225 100644 --- a/hypervisor/include/arch/x86/asm/board.h +++ b/hypervisor/include/arch/x86/asm/board.h @@ -11,6 +11,7 @@ #include #include #include +#include /* forward declarations */ struct acrn_vm; @@ -29,9 +30,7 @@ struct vmsix_on_msi_info { extern struct dmar_info plat_dmar_info; #ifdef CONFIG_RDT_ENABLED -extern union clos_config platform_l2_clos_array[MAX_CACHE_CLOS_NUM_ENTRIES]; -extern union clos_config platform_l3_clos_array[MAX_CACHE_CLOS_NUM_ENTRIES]; -extern union clos_config platform_mba_clos_array[MAX_MBA_CLOS_NUM_ENTRIES]; +extern struct rdt_type res_cap_info[RDT_NUM_RESOURCES]; #endif extern const struct cpu_state_table board_cpu_state_tbl;