[v0.87][FREQ] Frequency in udev is now fetched as a per core basis. Before this commit, freq was always fetched from core 0. This allows ARM do detect the max frequency of each of the cores (which may or may not be the same in all of them)

This commit is contained in:
Dr-Noob
2020-11-22 10:23:02 +01:00
parent 0875c4d425
commit fcb2c716db
5 changed files with 24 additions and 22 deletions

View File

@@ -678,7 +678,7 @@ struct frequency* get_frequency_info(struct cpuInfo* cpu) {
#else
printWarn("Can't read frequency information from cpuid (needed level is 0x%.8X, max is 0x%.8X). Using udev", 0x00000016, cpu->maxLevels);
freq->base = UNKNOWN_FREQ;
freq->max = get_max_freq_from_file();
freq->max = get_max_freq_from_file(0);
#endif
}
else {