Skip to content

Commit

Permalink
[v1.03][X86] Fix compilation warning under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Noob committed May 6, 2023
1 parent f6bf00e commit 7a3fd53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/x86/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ bool get_cache_topology_amd(struct cpuInfo* cpu, struct topology* topo) {
return true;
}

#ifdef __linux__
void get_topology_from_udev(struct topology* topo) {
// TODO: To be improved in the future
topo->total_cores = get_ncores_from_cpuinfo();
Expand All @@ -641,6 +642,7 @@ void get_topology_from_udev(struct topology* topo) {
topo->smt_supported = 1;
topo->sockets = 1;
}
#endif

// Main reference: https://software.intel.com/content/www/us/en/develop/articles/intel-64-architecture-processor-topology-enumeration.html
// Very interesting resource: https://wiki.osdev.org/Detecting_CPU_Topology_(80x86)
Expand Down

0 comments on commit 7a3fd53

Please sign in to comment.