[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

@@ -14,11 +14,13 @@ struct apic {
uint32_t* cache_id_apic;
};
bool get_topology_from_apic(struct cpuInfo* cpu, struct topology* topo);
bool get_topology_from_apic(struct cpuInfo* cpu, struct topology* topo, int module);
uint32_t is_smt_enabled_amd(struct topology* topo);
#ifndef __APPLE__
bool bind_to_cpu(int cpu_id);
#endif
int get_total_cores_module(int total_cores, int module);
#endif