msm: cvp: All CVP load treated as real-time

Non-real-time workload will be rejected if CVP runs out of capacity.

Change-Id: Ifbbc197cbd2408209d83e2ec44b9ad9b74ad6888
Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
George Shen 2020-09-02 10:27:14 -07:00
parent 2251e53c39
commit 237a842702
2 changed files with 3 additions and 2 deletions

View File

@ -761,7 +761,7 @@ static void aggregate_power_update(struct msm_cvp_core *core,
inst->state == MSM_CVP_CORE_UNINIT ||
!is_subblock_profile_existed(inst))
continue;
if (inst->prop.priority <= CVP_RT_PRIO_THRESHOLD) {
if (inst->prop.priority < CVP_RT_PRIO_THRESHOLD) {
/* Non-realtime session use index 0 */
i = 0;
} else {

View File

@ -47,7 +47,8 @@
#define ARP_BUF_SIZE 0x100000
#define CVP_RT_PRIO_THRESHOLD 1
/* Adjust this value to admit non-realtime session */
#define CVP_RT_PRIO_THRESHOLD 0
struct msm_cvp_inst;