Open asahilina opened 4 months ago
Oops. Didn't know about that. Thanks!
It doesn't seem like cpu_capacity
is always defined, so I think we still need a fallback to cpuinfo_max_freq
?
I think cpu_capacity
should always be defined for a system with properly configured big.LITTLE, but I guess maybe some platforms aren't always doing that? It might make sense to keep the cpuinfo_max_freq
fallback then, yeah ^^
Right now the code uses
cpufreq/cpuinfo_max_freq
. The correct way to identify different core types is thecpu_capacity
file (/sys/devices/system/cpu/cpu3/cpu_capacity
). This should be 1024 for p-cores, though it's probably safer to keep the current logic of taking the max number as the p-cores.