From c279631e2642c4935f21f5345ce9b357a4f8ee6a Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 13 Mar 2019 16:43:36 -0700 Subject: [PATCH] qcacld-3.0: Enable delayed work tracking Enable delayed work tracking, recently added in Ie02c3577acd443e3f252b9b3a47207e5e2d5fe81. Change-Id: I6bf718e3c7d9aa72681d0a0ffbabcb304968e229 CRs-Fixed: 2425533 --- Kbuild | 3 ++- core/hdd/src/wlan_hdd_main.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Kbuild b/Kbuild index d46cdc05503f..0031027df99f 100644 --- a/Kbuild +++ b/Kbuild @@ -2054,7 +2054,8 @@ cppflags-y += \ -DMEMORY_DEBUG \ -DNBUF_MEMORY_DEBUG \ -DNBUF_MAP_UNMAP_DEBUG \ - -DTIMER_MANAGER + -DTIMER_MANAGER \ + -DWLAN_DELAYED_WORK_DEBUG endif cppflags-y += -DWLAN_FEATURE_P2P diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6d3e5303848e..e4f5003c8633 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2742,6 +2742,7 @@ static void hdd_check_for_leaks(struct hdd_context *hdd_ctx, bool is_ssr) if (is_ssr) return; + qdf_delayed_work_check_for_leaks(); qdf_mc_timer_check_for_leaks(); qdf_nbuf_map_check_for_leaks(); qdf_mem_check_for_leaks(); @@ -13305,6 +13306,7 @@ static QDF_STATUS hdd_qdf_init(void) qdf_lock_stats_init(); qdf_mem_init(); + qdf_delayed_work_feature_init(); qdf_mc_timer_manager_init(); qdf_event_list_init(); @@ -13338,6 +13340,7 @@ talloc_deinit: event_deinit: qdf_event_list_destroy(); qdf_mc_timer_manager_exit(); + qdf_delayed_work_feature_deinit(); qdf_mem_exit(); qdf_lock_stats_deinit(); qdf_debugfs_exit(); @@ -13360,6 +13363,7 @@ static void hdd_qdf_deinit(void) qdf_talloc_feature_deinit(); qdf_event_list_destroy(); qdf_mc_timer_manager_exit(); + qdf_delayed_work_feature_deinit(); qdf_mem_exit(); qdf_lock_stats_deinit(); qdf_debugfs_exit();