hv: some cosmetic fixes to rdt.c/rdt.h

Rename the clos_max field in struct rdt_info to num_closids

Rename variable valid_clos_num to common_num_closids and make it static

Tracked-On: #5917
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
This commit is contained in:
dongshen
2021-09-14 15:03:03 -07:00
committed by Xie, Nanlin
parent 2de395b6f6
commit f4cdbba0bd
2 changed files with 22 additions and 25 deletions

View File

@@ -21,7 +21,6 @@ enum {
#define RDT_RESID_MBA 3U
extern const uint16_t hv_clos;
extern uint16_t valid_clos_num;
/* The intel Resource Director Tech(RDT) based Allocation Tech support */
struct rdt_info {
@@ -38,9 +37,9 @@ struct rdt_info {
bool delay_linear; /* True if memory B/W delay is in linear scale */
} membw;
} res;
uint16_t clos_max; /* Maximum CLOS supported, 0 indicates resource is not supported.*/
uint16_t num_closids; /* Number of CLOSIDs available, 0 indicates resource is not supported.*/
uint32_t res_id;
uint32_t msr_base; /* MSR base to program clos mask*/
uint32_t msr_base; /* MSR base to program clos value */
struct platform_clos_info *platform_clos_array; /* user configured mask and MSR info for each CLOS*/
};