Add --levels option

This commit is contained in:
Dr-Noob
2020-06-22 13:17:00 +02:00
parent a2dab8129c
commit 0725e9d876
5 changed files with 53 additions and 21 deletions

View File

@@ -659,6 +659,12 @@ char* get_str_freq(struct frequency* freq) {
return string;
}
void print_levels(struct cpuInfo* cpu, char* cpu_name) {
printf("%s\n", cpu_name);
printf("- Max standart level: 0x%.8X\n", cpu->maxLevels);
printf("- Max extended level: 0x%.8X\n", cpu->maxExtendedLevels);
}
void free_cache_struct(struct cache* cach) {
free(cach);
}