Browse Source

Merge "Revert "video: driver: power collapse only if no sessions present""

qctecmdr 4 years ago
parent
commit
090dae75e4
1 changed files with 0 additions and 11 deletions
  1. 0 11
      driver/vidc/src/venus_hfi.c

+ 0 - 11
driver/vidc/src/venus_hfi.c

@@ -2713,7 +2713,6 @@ void venus_hfi_pm_work_handler(struct work_struct *work)
 		return;
 	}
 
-	d_vpr_h("%s\n", __func__);
 	/*
 	 * It is ok to check this variable outside the lock since
 	 * it is being updated in this context only
@@ -2727,15 +2726,6 @@ void venus_hfi_pm_work_handler(struct work_struct *work)
 	}
 
 	core_lock(core, __func__);
-
-	/* power collapse only if no session is present */
-	if (!list_empty(&core->instances)) {
-		d_vpr_h(
-			"%s: sessions available, skip power collapse\n",
-			__func__);
-		goto unlock;
-	}
-
 	rc = __power_collapse(core, false);
 	switch (rc) {
 	case 0:
@@ -2759,7 +2749,6 @@ void venus_hfi_pm_work_handler(struct work_struct *work)
 		d_vpr_e("%s: power collapse failed\n", __func__);
 		break;
 	}
-unlock:
 	core_unlock(core, __func__);
 }