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

Commit 890d1454 authored by Peiyong Lin's avatar Peiyong Lin Committed by Android (Google) Code Review
Browse files

Merge "Add power efficiency hint for power hint session."

parents b23aca68 cb6fee55
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,
}