diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-05-18 16:37:54 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-06-06 10:24:11 -0400 |
commit | 0dc66952e4df80b45c77bdbb31ce2a32f216328f (patch) | |
tree | d15940a8c50ebdb30886bcdc64155270fc0828bc /drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | |
parent | d5fd0689c23683c161128cf9b51077d3b8c1c2bc (diff) |
gpu: nvgpu: Use vmalloc only when size >4K
When allocation size is 4k or below, we should use kmalloc. vmalloc
should be used only for larged allocations.
Introduce nvgpu_alloc, which checks the size, and decides the API
to use.
Change-Id: I593110467cd319851b27e57d1bfe8d228d3f2909
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/743974
(cherry picked from commit 7f56aa1f0ecafbfde7286353b60e25e494674d26)
Reviewed-on: http://git-master/r/753276
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c')
0 files changed, 0 insertions, 0 deletions