mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user