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

Commit 8a6b421e authored by Peiyong Lin's avatar Peiyong Lin Committed by Automerger Merge Worker
Browse files

Merge "Add power efficiency hint for power hint session." am: 890d1454

parents 9a1246df 890d1454
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,4 +38,5 @@ enum SessionHint {
  CPU_LOAD_DOWN = 1,
  CPU_LOAD_RESET = 2,
  CPU_LOAD_RESUME = 3,
  POWER_EFFICIENCY = 4,
}
+11 −2
Original line number Diff line number Diff line
@@ -25,22 +25,31 @@ enum SessionHint {
     * This hint must be sent before reporting the actual duration to the session.
     */
    CPU_LOAD_UP = 0,

    /**
     * This hint indicates a decrease in CPU workload intensity. It means that
     * this hint session can reduce CPU resources and still meet the target duration.
     */
    CPU_LOAD_DOWN = 1,
    /*

    /**
     * This hint indicates an upcoming CPU workload that is completely changed and
     * unknown. It means that the hint session should reset CPU resources to a known
     * baseline to prepare for an arbitrary load, and must wake up if inactive.
     */
    CPU_LOAD_RESET = 2,
    /*

    /**
     * This hint indicates that the most recent CPU workload is resuming after a
     * period of inactivity. It means that the hint session should allocate similar
     * CPU resources to what was used previously, and must wake up if inactive.
     */
    CPU_LOAD_RESUME = 3,

    /**
     * This hint indicates that this power hint session should be applied with a
     * power-efficient-first scheduling strategy. This means the work of this
     * power hint session is noncritical despite its CPU intensity.
     */
    POWER_EFFICIENCY = 4,
}