mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.85][ARM] Add SoC field in ARM and remove CPU Name field, which is only valid in x86. Fix Makefile for some strict compilers
This commit is contained in:
@@ -87,6 +87,9 @@ struct cpuInfo* get_cpu_info() {
|
||||
|
||||
cpu->hv = malloc(sizeof(struct hypervisor));
|
||||
cpu->hv->present = false;
|
||||
cpu->soc = SOC_VENDOR_UNKNOWN;
|
||||
cpu->soc_name = malloc(sizeof(char)*(strlen(STRING_UNKNOWN)+1));
|
||||
snprintf(cpu->soc_name, strlen(STRING_UNKNOWN)+1, STRING_UNKNOWN);
|
||||
|
||||
return cpu;
|
||||
}
|
||||
@@ -188,6 +191,10 @@ char* get_str_peak_performance(struct cpuInfo* cpu, struct topology* topo, int64
|
||||
return string;
|
||||
}
|
||||
|
||||
char* get_soc_name(struct cpuInfo* cpu) {
|
||||
return cpu->soc_name;
|
||||
}
|
||||
|
||||
void free_topo_struct(struct topology* topo) {
|
||||
free(topo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user