Commit a652a07b authored by Jordan Crouse's avatar Jordan Crouse Committed by Jeremy Gebben
Browse files

msm: kgsl: Use kzalloc to allocate scatterlists of 1 page or less



The majority of the scatterlist allocations used in KGSL are under 1
page (1 page of struct scatterlist is approximately 1024 entries
equalling 4MB of allocated buffer).  In these cases using vmalloc
for the sglist is undesirable and slow.  Add functions to check the
size of the allocation and favor kzalloc for 1 page allocations and
vmalloc for larger lists.

Change-Id: Ic0dedbad99b60111677dd56b74edd8cedcac17f0
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent d27b09f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment