qcacmn: Define QDF API for vzalloc and vfree

Define QDF API for virtual memory allocation and free.
Also add new api to get time of the day in microseconds.

Change-Id: I2921055bbb6b5d2a1105d19448b2a10fa2d6ccc5
CRs-Fixed: 3038180
Cette révision appartient à :
Pragaspathi Thilagaraj
2021-09-14 15:50:06 +05:30
révisé par Madan Koyyalamudi
Parent e5255c7253
révision a8d8b663b2
10 fichiers modifiés avec 140 ajouts et 55 suppressions

Voir le fichier

@@ -4073,7 +4073,7 @@ static ssize_t dbglog_block_read(struct file *file,
char *buf;
int ret;
buf = vzalloc(count);
buf = qdf_mem_valloc(count);
if (!buf)
return -ENOMEM;
@@ -4088,7 +4088,7 @@ static ssize_t dbglog_block_read(struct file *file,
ret =
wait_for_completion_interruptible(&fwlog->fwlog_completion);
if (ret == -ERESTARTSYS) {
vfree(buf);
qdf_mem_vfree(buf);
return ret;
}
@@ -4122,7 +4122,7 @@ static ssize_t dbglog_block_read(struct file *file,
ret_cnt = len;
out:
vfree(buf);
qdf_mem_vfree(buf);
return ret_cnt;
}