commit | f09216fe1bbaf48c742636e292f422e7e8cbf320 | [log] [tgz] |
---|---|---|
author | Shashikala Prabhu <pshashik@codeaurora.org> | Mon Nov 05 16:44:29 2018 +0530 |
committer | nshrivas <nshrivas@codeaurora.org> | Thu Nov 22 00:43:51 2018 -0800 |
tree | 0b664daa530197ffea3d1422724f957000cb63a3 | |
parent | 74e6d8b5101bfbb6d62d29bf651080b7c3fc1d10 [diff] |
qcacmn: Add qdf API to align the allocated memory Define qdf_aligned_mem_alloc_consistent() and qdf_aligned_malloc() which allocates the memory and checks if allocated base address is aligned with ring_base_align. If not, it frees the memory and re-allocates by adding 7 bytes to alloc_size and returns aligned address to the caller. Change-Id: I412153c20e4e4566450b006356fe78d98f1fd3f0 Acked-by: Shashikala Prabhu <pshashik@codeaurora.org> CRs-Fixed: 2336697