[v1.02][x86] Adding support for topology detection of hybrid cores

This commit is contained in:
Dr-Noob
2022-11-05 17:48:20 +00:00
parent 051d48b7d1
commit ff5166ea2e
5 changed files with 188 additions and 42 deletions

View File

@@ -78,6 +78,7 @@ struct topology {
uint32_t smt_supported; // Number of SMT that CPU supports (equal to smt_available if SMT is enabled)
#ifdef ARCH_X86
uint32_t smt_available; // Number of SMT that is currently enabled
int32_t total_cores_module; // Total cores in the current module (only makes sense in hybrid archs, like ADL)
struct apic* apic;
#endif
#endif
@@ -142,10 +143,13 @@ struct cpuInfo {
#ifdef ARCH_ARM
struct system_on_chip* soc;
#endif
#if defined(ARCH_X86) || defined(ARCH_ARM)
// If SoC contains more than one CPU and they
// are different, the others will be stored in
// the next_cpu field
struct cpuInfo* next_cpu;
struct cpuInfo* next_cpu;
uint8_t num_cpus;
#endif
};