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

Commit 7ff5d8a9 authored by Vince Leung's avatar Vince Leung Committed by Linux Build Service Account
Browse files

performance: Add opcodes to limit maximum number of cores

Add opcodes to support the limiting of maximum
number of cores online.

Change-Id: I9c3c33ff0331260d1a2da65568264ccad6d4b7fd
parent d3d851f5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@ public class Performance
    /** @hide */ public static final int CPUS_ON_2 = 0x702;
    /** @hide */ public static final int CPUS_ON_3 = 0x703;
    /** @hide */ public static final int CPUS_ON_MAX = 0x704;
    /** @hide */ public static final int CPUS_ON_LIMIT_1 = 0x7FE;
    /** @hide */ public static final int CPUS_ON_LIMIT_2 = 0x7FD;
    /** @hide */ public static final int CPUS_ON_LIMIT_3 = 0x7FC;

    /** @hide */ public static final int ALL_CPUS_FREQ_NONTURBO_MAX = 0x90A;
    /** @hide */ public static final int ALL_CPUS_FREQ_TURBO_MAX = 0x90F;
+6 −0
Original line number Diff line number Diff line
@@ -99,6 +99,12 @@ The following resource optimizations are supported for MSM8960:
|         | CPUS_ON_3                       | Minimum of three cores on                  |
|         |_________________________________|____________________________________________|
|         | CPUS_ON_2                       | Minimum of two cores on                    |
|         |_________________________________|____________________________________________|
|         | CPUS_ON_LIMIT_1                 | Maximum of one core on                     |
|         |_________________________________|____________________________________________|
|         | CPUS_ON_LIMIT_2                 | Maximum of two cores on                    |
|         |_________________________________|____________________________________________|
|         | CPUS_ON_LIMIT_3                 | Maximum of three cores on                  |
|         |                                 |                                            |
 ========================================================================================
|    3    | CPU0_FREQ_LVL_TURBO_MAX         | Set CPU0 minimum frequency to 1512 Mhz     |