Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc09f91f authored by Pracheer's avatar Pracheer Committed by Gerrit - the friendly Code Review server
Browse files

ActivityStack: Add support for core online perflock.

During first launch, add support for bringing additional
cores online through perf-lock. This parameter needs
to be set from config.xml file.

Change-Id: Ibcd769026bb5fb3c310bdcdb994919b1060f4749
parent fbba25ce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2217,6 +2217,7 @@
    <integer name="launchboost_timeout_param">0</integer>
    <integer name="launchboost_schedboost_param">0</integer>
    <integer name="launchboost_cpuboost_param">0</integer>
    <integer name="launchboost_cpunumboost_param">0</integer>
    <integer name="launchboost_pcdisbl_param">0</integer>
    <integer name="launchboost_ksmboost_param">0</integer>
    <integer name="launchboost_smtaskboost_param">0</integer>
+1 −0
Original line number Diff line number Diff line
@@ -2272,6 +2272,7 @@
  <java-symbol type="integer" name="launchboost_timeout_param" />
  <java-symbol type="integer" name="launchboost_schedboost_param" />
  <java-symbol type="integer" name="launchboost_cpuboost_param" />
  <java-symbol type="integer" name="launchboost_cpunumboost_param" />
  <java-symbol type="integer" name="launchboost_pcdisbl_param" />
  <java-symbol type="integer" name="launchboost_ksmboost_param" />
  <java-symbol type="integer" name="launchboost_smtaskboost_param" />
+6 −2
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
    public int lBoostIdleLoadBoost = 0;
    public int lBoostIdleNrRunBoost = 0;
    public int lBoostPreferIdle = 0;
    public int lBoostCpuNumBoost = 0;
    static final int HANDLE_DISPLAY_ADDED = FIRST_SUPERVISOR_STACK_MSG + 5;
    static final int HANDLE_DISPLAY_CHANGED = FIRST_SUPERVISOR_STACK_MSG + 6;
    static final int HANDLE_DISPLAY_REMOVED = FIRST_SUPERVISOR_STACK_MSG + 7;
@@ -337,6 +338,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
                   com.android.internal.R.integer.launchboost_idlenrrunboost_param);
           lBoostPreferIdle = mService.mContext.getResources().getInteger(
                   com.android.internal.R.integer.launchboost_preferidle_param);
           lBoostCpuNumBoost = mService.mContext.getResources().getInteger(
                   com.android.internal.R.integer.launchboost_cpunumboost_param);
       }
    }

@@ -2751,8 +2754,9 @@ public final class ActivityStackSupervisor implements DisplayListener {
        }
        if (mPerf != null) {
            mPerf.perfLockAcquire(lBoostTimeOut, lBoostPcDisblBoost, lBoostSchedBoost,
                                  lBoostCpuBoost, lBoostKsmBoost, lBoostSmTaskBoost,
                                  lBoostIdleLoadBoost, lBoostIdleNrRunBoost,lBoostPreferIdle);
                                  lBoostCpuBoost, lBoostCpuNumBoost, lBoostKsmBoost, 
                                  lBoostSmTaskBoost, lBoostIdleLoadBoost, 
                                  lBoostIdleNrRunBoost, lBoostPreferIdle);
        }

        if (DEBUG_TASKS) Slog.d(TAG, "No task found");