mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-26 00:10:38 +01:00
Fix compilation in Windows and add support for bind to specific cores. Separate APIC code in other file
This commit is contained in:
17
src/apic.h
Normal file
17
src/apic.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef __APIC__
|
||||
#define __APIC__
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "cpuid.h"
|
||||
|
||||
struct apic {
|
||||
uint32_t pkg_mask;
|
||||
uint32_t pkg_mask_shift;
|
||||
uint32_t core_mask;
|
||||
uint32_t smt_mask_width;
|
||||
uint32_t smt_mask;
|
||||
};
|
||||
|
||||
bool get_topology_from_apic(uint32_t cpuid_max_levels, struct topology** topo);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user