This commit is contained in:
Dr-Noob
2025-10-30 08:36:50 +01:00
parent bdadac5dd8
commit 9bd50264b3

View File

@@ -16,7 +16,7 @@
maskset = true; \ maskset = true; \
} \ } \
struct frequency* get_frequency_info(uint32_t_t core) { struct frequency* get_frequency_info(uint32_t core) {
struct frequency* freq = emalloc(sizeof(struct frequency)); struct frequency* freq = emalloc(sizeof(struct frequency));
freq->measured = false; freq->measured = false;
@@ -244,7 +244,7 @@ struct cpuInfo* get_cpu_info(void) {
//TODO: Might be worth refactoring with other archs //TODO: Might be worth refactoring with other archs
char* get_str_topology(struct cpuInfo* cpu, struct topology* topo) { char* get_str_topology(struct cpuInfo* cpu, struct topology* topo) {
uint32_t_t size = 3+7+1; uint32_t size = 3+7+1;
char* string = emalloc(sizeof(char)*size); char* string = emalloc(sizeof(char)*size);
snprintf(string, size, "%d cores", topo->total_cores); snprintf(string, size, "%d cores", topo->total_cores);