HV: load cpu px data in boot

The patch takes Intel ATOM A3960 as example that hard code all Px info
which is needed for Px control into Acrn HV and load it in boot process.

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Victor Sun
2018-04-04 14:29:46 +08:00
committed by Jack Ren
parent 4cd2717038
commit a28fbd15b5
6 changed files with 170 additions and 0 deletions

View File

@@ -237,10 +237,14 @@ struct cpuinfo_x86 {
uint64_t physical_address_mask;
uint32_t cpuid_leaves[FEATURE_WORDS];
char model_name[64];
uint8_t px_cnt;
struct cpu_px_data *px_data;
};
extern struct cpuinfo_x86 boot_cpu_data;
#define MAX_PSTATE 20
/* Function prototypes */
void cpu_halt(uint32_t logical_id);
uint64_t cpu_cycles_per_second(void);