Jelajahi Sumber

qcacld-3.0: Check for PM QoS vote only if dynamic runtime pm is enabled

Check for PM QoS Latency constraint only if dynamic runtime
pm is enabled.

Change-Id: If38de1d5c28ec80fb3dccaa6444916cf81347268
CRs-Fixed: 3196823
Nirav Shah 2 tahun lalu
induk
melakukan
100ab02392
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      core/hdd/src/wlan_hdd_driver_ops.c

+ 2 - 1
core/hdd/src/wlan_hdd_driver_ops.c

@@ -1640,7 +1640,8 @@ static int wlan_hdd_runtime_suspend(struct device *dev)
 		return -EBUSY;
 	}
 
-	if (wlan_hdd_is_cpu_pm_qos_in_progress(hdd_ctx)) {
+	if (hdd_ctx->config->runtime_pm == hdd_runtime_pm_dynamic &&
+	    wlan_hdd_is_cpu_pm_qos_in_progress(hdd_ctx)) {
 		hdd_debug("PM QoS Latency constraint, ignore runtime suspend");
 		return -EBUSY;
 	}