lineage-sdk: Reenable performance profiles

Change-Id: Ic179230f425747c360c4a0ce6a9d446ca2d97265
This commit is contained in:
dianlujitao
2018-01-18 13:56:32 +08:00
committed by Luca Stefani
parent f8eaf9f782
commit 18337dc1da

View File

@@ -233,10 +233,7 @@ public class PerformanceManagerService extends LineageSystemService {
if (phase == PHASE_SYSTEM_SERVICES_READY && !mSystemReady) {
synchronized (mLock) {
mPm = getLocalService(PowerManagerInternal.class);
/* BRINGUP: requires https://review.lineageos.org/#/c/65793/
mNumProfiles = mPm.getFeature(POWER_FEATURE_SUPPORTED_PROFILES);
*/
mNumProfiles = 0;
if (hasProfiles()) {
populateProfilesLocked();
@@ -294,9 +291,7 @@ public class PerformanceManagerService extends LineageSystemService {
if (!isProfileSame && profile != PROFILE_POWER_SAVE &&
mActiveProfile == PROFILE_POWER_SAVE) {
long token = Binder.clearCallingIdentity();
/* BRINGUP: requires https://review.lineageos.org/#/c/65793/
mPm.setPowerSaveMode(false);
*/
Binder.restoreCallingIdentity(token);
}