qcacmn: Move wakelock to psoc level

Wakelock is system level lock not required to be taken
for every vdev, Hence move the wakelock to the psoc
hierarchy.

Change-Id: I525baf5f4b5dcadb493d84900dbd0a2e7c6407f6
CRs-Fixed: 2563406
Este commit está contenido en:
Arun Kumar Khandavalli
2019-11-22 17:16:18 +05:30
padre 614d1e4476
commit eaac8c195b
Se han modificado 10 ficheros con 239 adiciones y 263 borrados

Ver fichero

@@ -25,6 +25,7 @@
#include <include/wlan_psoc_mlme.h>
#include <wlan_psoc_mlme_main.h>
#include <wlan_psoc_mlme_api.h>
#include <target_if_psoc_wake_lock.h>
struct psoc_mlme_obj *mlme_psoc_get_priv(struct wlan_objmgr_psoc *psoc)
{
@@ -69,7 +70,8 @@ static QDF_STATUS mlme_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc,
goto init_failed;
}
return status;
target_if_wake_lock_init(psoc);
return QDF_STATUS_SUCCESS;
init_failed:
qdf_mem_free(psoc_mlme);
@@ -87,6 +89,7 @@ static QDF_STATUS mlme_psoc_obj_destroy_handler(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_E_FAILURE;
}
target_if_wake_lock_deinit(psoc);
wlan_objmgr_psoc_component_obj_detach(psoc, WLAN_UMAC_COMP_MLME,
psoc_mlme);

Ver fichero

@@ -31,7 +31,6 @@
#include <wlan_serialization_api.h>
#include <wlan_utility.h>
#include <cdp_txrx_cmn.h>
#include <target_if_vdev_mgr_wake_lock.h>
#include <wlan_lmac_if_def.h>
#include <target_if_vdev_mgr_tx_ops.h>
@@ -113,7 +112,6 @@ static QDF_STATUS mlme_vdev_obj_create_handler(struct wlan_objmgr_vdev *vdev,
(void *)vdev_mlme,
QDF_STATUS_SUCCESS);
target_if_wake_lock_init(vdev);
if (mlme_vdev_ops_ext_hdl_post_create(vdev_mlme) !=
QDF_STATUS_SUCCESS) {
mlme_err("Legacy vdev object post creation failed");
@@ -146,7 +144,6 @@ static QDF_STATUS mlme_vdev_obj_destroy_handler(struct wlan_objmgr_vdev *vdev,
mlme_err(" VDEV is NULL");
return QDF_STATUS_E_FAILURE;
}
target_if_wake_lock_deinit(vdev);
vdev_mlme = wlan_vdev_mlme_get_cmpt_obj(vdev);
if (!vdev_mlme) {