浏览代码

soc:soundwire: disable pm_qos in soundwire master driver

Disable pm_qos in soundwire master driver.

Change-Id: I0f042faf48f003bef8b43641ef0ccb3cf82d7dd9
Signed-off-by: Sudheer Papothi <[email protected]>
Sudheer Papothi 4 年之前
父节点
当前提交
068e2722da
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      soc/swr-mstr-ctrl.c

+ 0 - 9
soc/swr-mstr-ctrl.c

@@ -2808,9 +2808,6 @@ static int swrm_probe(struct platform_device *pdev)
 	swrm->wlock_holders = 0;
 	swrm->pm_state = SWRM_PM_SLEEPABLE;
 	init_waitqueue_head(&swrm->pm_wq);
-	cpu_latency_qos_add_request(&swrm->pm_qos_req,
-			   PM_QOS_DEFAULT_VALUE);
-
 	for (i = 0 ; i < SWR_MSTR_PORT_LEN; i++) {
 		INIT_LIST_HEAD(&swrm->mport_cfg[i].port_req_list);
 
@@ -3010,7 +3007,6 @@ err_irq_fail:
 	mutex_destroy(&swrm->iolock);
 	mutex_destroy(&swrm->clklock);
 	mutex_destroy(&swrm->pm_lock);
-	cpu_latency_qos_remove_request(&swrm->pm_qos_req);
 
 err_pdata_fail:
 err_memory_fail:
@@ -3048,7 +3044,6 @@ static int swrm_remove(struct platform_device *pdev)
 	mutex_destroy(&swrm->clklock);
 	mutex_destroy(&swrm->force_down_lock);
 	mutex_destroy(&swrm->pm_lock);
-	cpu_latency_qos_remove_request(&swrm->pm_qos_req);
 	devm_kfree(&pdev->dev, swrm);
 	return 0;
 }
@@ -3743,8 +3738,6 @@ static bool swrm_lock_sleep(struct swr_mstr_ctrl *swrm)
 	mutex_lock(&swrm->pm_lock);
 	if (swrm->wlock_holders++ == 0) {
 		dev_dbg(swrm->dev, "%s: holding wake lock\n", __func__);
-		cpu_latency_qos_update_request(&swrm->pm_qos_req,
-					 CPU_IDLE_LATENCY);
 		pm_stay_awake(swrm->dev);
 	}
 	mutex_unlock(&swrm->pm_lock);
@@ -3779,8 +3772,6 @@ static void swrm_unlock_sleep(struct swr_mstr_ctrl *swrm)
 		 */
 		if (likely(swrm->pm_state == SWRM_PM_AWAKE))
 			swrm->pm_state = SWRM_PM_SLEEPABLE;
-		cpu_latency_qos_update_request(&swrm->pm_qos_req,
-				PM_QOS_DEFAULT_VALUE);
 		pm_relax(swrm->dev);
 	}
 	mutex_unlock(&swrm->pm_lock);