mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-12 03:21:08 +00:00
KGSL's files and thermal zone names differ between Snapdragon generations. Each value now takes the first source that exists, in the order GameNative and the Winlator forks read them: GPU load from gpu_busy_percentage or devfreq/gpu_load, GPU clock from devfreq/cur_freq or gpuclk, GPU temperature from KGSL's temp, devfreq/temp or a zone whose sensor name has "gpu". CPU zones are any whose name has "cpu" and not "gpu" (cpuss-0, cpu0-silver-usr, apc1-cpu0-usr, ...), matched without regard to case.