FakeShell / batman

A battery management service and program for Linux phones
GNU General Public License v2.0
8 stars 7 forks source link

batman: change hardcoded cpu0 to ${CORE_FIRST} #7

Closed Bettehem closed 10 months ago

Bettehem commented 10 months ago

A hardcoded cpu0 path in would cause batman to exit on the OnePlus 3/3T because when a core is offline, the cpufreq path doesn't exist for that core. Changing this to ${CORE_FIRST} will instead check from an online core and not a potentially offlined one.

FakeShell commented 10 months ago

should be safe to merge either way, the only consumer of LEGACY is oneplus3. i will do more testing today