Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpufreq: Ensure the min_freq is lower than max_freq
* Libperfmgr increases the minimal frequency to 9999999 in order to boost the cpu to the maximal frequency. This usally works because it also increases the max frequency to 9999999 at init. However if we decrease the maximal frequency afterwards, which mi_thermald does, setting the minimal frequency to 9999999 fails because it exceeds the maximal frequency. * We can allow setting a minimal frequency higher than the maximal frequency and setting a lower maximal frequency than the minimal frequency by adjusting the minimal frequency if it exceeds the maximal frequency. Change-Id: I25b7ccde714aac14c8fdb9910857c3bd38c0aa05 Signed-off-by: Forenche <prahul2003@gmail.com> Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
- Loading branch information