qcacld-3.0: Change ce desc history from dynamic to static
As dynamic allocation occupy cnss prealloc memory, which may cause this prealloc pool to be exhausted. Move dynamic memory to static. Change-Id: Ib05c044f8c0c805148d832f54c09915ef9b4c98b CRs-Fixed: 3174282
This commit is contained in:

committed by
Madan Koyyalamudi

parent
85990548c6
commit
dc302acee2
@@ -622,12 +622,6 @@ static int __hdd_soc_probe(struct device *dev,
|
|||||||
goto dp_prealloc_fail;
|
goto dp_prealloc_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = hif_ce_debug_history_prealloc_init();
|
|
||||||
if (status != QDF_STATUS_SUCCESS) {
|
|
||||||
errno = qdf_status_to_os_return(status);
|
|
||||||
goto hif_ce_debug_history_prealloc_fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
errno = hdd_wlan_startup(hdd_ctx);
|
errno = hdd_wlan_startup(hdd_ctx);
|
||||||
if (errno)
|
if (errno)
|
||||||
goto hdd_context_destroy;
|
goto hdd_context_destroy;
|
||||||
@@ -656,9 +650,6 @@ wlan_exit:
|
|||||||
hdd_wlan_exit(hdd_ctx);
|
hdd_wlan_exit(hdd_ctx);
|
||||||
|
|
||||||
hdd_context_destroy:
|
hdd_context_destroy:
|
||||||
hif_ce_debug_history_prealloc_deinit();
|
|
||||||
|
|
||||||
hif_ce_debug_history_prealloc_fail:
|
|
||||||
dp_prealloc_deinit();
|
dp_prealloc_deinit();
|
||||||
|
|
||||||
dp_prealloc_fail:
|
dp_prealloc_fail:
|
||||||
@@ -859,7 +850,6 @@ static void __hdd_soc_remove(struct device *dev)
|
|||||||
cds_set_driver_in_bad_state(false);
|
cds_set_driver_in_bad_state(false);
|
||||||
cds_set_unload_in_progress(false);
|
cds_set_unload_in_progress(false);
|
||||||
|
|
||||||
hif_ce_debug_history_prealloc_deinit();
|
|
||||||
dp_prealloc_deinit();
|
dp_prealloc_deinit();
|
||||||
|
|
||||||
pr_info("%s: Driver De-initialized\n", WLAN_MODULE_NAME);
|
pr_info("%s: Driver De-initialized\n", WLAN_MODULE_NAME);
|
||||||
|
Reference in New Issue
Block a user