underclock: add a single generic recipe for all watches - #292
Open
FlorentRevest wants to merge 1 commit into
Open
underclock: add a single generic recipe for all watches#292FlorentRevest wants to merge 1 commit into
FlorentRevest wants to merge 1 commit into
Conversation
Every watch shipped its own recipes-core/underclock recipe that was identical apart from a device-tuned script. Introduce one generic, machine-independent recipe here so the per-device copies in meta-smartwatch can be dropped. The script guards every sysfs write behind an existence/writability check, so a single script adapts to whatever a given kernel exposes: - offline every CPU core except cpu0 (adapts to the core count, so dual-core watches only drop cpu1) - pick the best available CPU governor: schedutil (mainline since 4.7) when offered, else ondemand -- this reproduces each watch's previous choice from kernel age alone, with no per-device configuration - pin the GPU to its lowest available frequency, read from kgsl-3d0/devfreq/available_frequencies (no hardcoded MHz) - enable the lpm_levels / lpm_levels_legacy sleep and idle knobs - prime MediaTek deep sleep via /dev/spm where present - apply tetra's PowerHAL fixups (interactive governor + chown of the kona-fb / interactive tunables) only when the tetra-only kona-fb platform device exists
Member
Author
|
This goes hand in hand with AsteroidOS/meta-smartwatch#329 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every watch shipped its own recipes-core/underclock recipe that was identical apart from a device-tuned script. Introduce one generic, machine-independent recipe here so the per-device copies in meta-smartwatch can be dropped.
The script guards every sysfs write behind an existence/writability check, so a single script adapts to whatever a given kernel exposes: