Преглед на файлове

qcacld-3.0: Do mem_init before calling qdf_spinlock_create

Doing mem_init first allows other qdf_features to allocate
memory for profiling and tracking using the qdf_mem_alloc
apis.

Change-Id: Id4f830a83a745763058ff2f05138b80558fe1d1f
CRs-Fixed: 1100552
Houston Hoffman преди 8 години
родител
ревизия
9e06e54d26
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      core/cds/src/cds_api.c
  2. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/cds/src/cds_api.c

@@ -92,8 +92,8 @@ void cds_sys_probe_thread_cback(void *pUserData);
  */
 v_CONTEXT_t cds_init(void)
 {
-	qdf_mc_timer_manager_init();
 	qdf_mem_init();
+	qdf_mc_timer_manager_init();
 
 	gp_cds_context = &g_cds_context;
 

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -9261,10 +9261,10 @@ int hdd_init(void)
 	v_CONTEXT_t p_cds_context = NULL;
 	int ret = 0;
 
+	p_cds_context = cds_init();
 #ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
 	wlan_logging_sock_init_svc();
 #endif
-	p_cds_context = cds_init();
 
 	if (p_cds_context == NULL) {
 		hdd_alert("Failed to allocate CDS context");