Эх сурвалжийг харах

qcacmn: Add a new wakelock for idle shutdown

Add a new wakelock for idle shutdown in order to prevent suspend
from occurring during idle shutdown.

Change-Id: Ia0c7422d3a12e7ff27d5acf9f57a81be13e5ef7d
CRs-Fixed: 2706461
Alan Chen 5 жил өмнө
parent
commit
778b28eb4a

+ 3 - 1
utils/host_diag_log/inc/host_diag_core_event.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -898,6 +898,7 @@ enum wifi_connectivity_events {
  * @WIFI_POWER_EVENT_WAKELOCK_IFACE_CHANGE_TIMER: iface change timer running
  * @WIFI_POWER_EVENT_WAKELOCK_MONITOR_MODE: Montitor mode wakelock
  * @WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_RESTART: Wakelock for Idle Restart
+ * @WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_SHUTDOWN: Wakelock for Idle Shutdown
  *
  * Indicates the reason for which the wakelock was taken/released
  */
@@ -925,6 +926,7 @@ enum wake_lock_reason {
 	WIFI_POWER_EVENT_WAKELOCK_IFACE_CHANGE_TIMER,
 	WIFI_POWER_EVENT_WAKELOCK_MONITOR_MODE,
 	WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_RESTART,
+	WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_SHUTDOWN,
 };
 
 /* The length of interface name should >= IFNAMSIZ */