瀏覽代碼

qcacld-3.0: Reduce PNO wakelock timeout in perf builds

The Preferred Network Offload (PNO) wakelock protects Supplicant while
it configures the new scan results. The wakelock timeout should be
optimized as much as possible on production builds, as it is never
released by the driver. For additional power savings, reduce the timeout
of this wakelock in production builds compared to debug builds.

Change-Id: Iaccf56e00e933d3a216212ef219f31d28d022ea5
CRs-Fixed: 2016286
Dustin Brown 8 年之前
父節點
當前提交
6bff24e2b9
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      core/wma/inc/wma.h

+ 6 - 1
core/wma/inc/wma.h

@@ -305,8 +305,13 @@ enum ds_mode {
 
 #ifdef FEATURE_WLAN_SCAN_PNO
 #define WMA_PNO_MATCH_WAKE_LOCK_TIMEOUT         (5 * 1000)     /* in msec */
+#ifdef CONFIG_SLUB_DEBUG_ON
 #define WMA_PNO_SCAN_COMPLETE_WAKE_LOCK_TIMEOUT (2 * 1000)     /* in msec */
-#endif
+#else
+#define WMA_PNO_SCAN_COMPLETE_WAKE_LOCK_TIMEOUT (1 * 1000)     /* in msec */
+#endif /* CONFIG_SLUB_DEBUG_ON */
+#endif /* FEATURE_WLAN_SCAN_PNO */
+
 #define WMA_AUTH_REQ_RECV_WAKE_LOCK_TIMEOUT     (5 * 1000)     /* in msec */
 #define WMA_ASSOC_REQ_RECV_WAKE_LOCK_DURATION   (5 * 1000)     /* in msec */
 #define WMA_DEAUTH_RECV_WAKE_LOCK_DURATION      (5 * 1000)     /* in msec */