msm: kgsl: Add GFP_NORETRY to the page_alloc flags and handle errors
The most important thing for the memory allocator is to not crash
or otherwise behave badly during low memory situations. Adding
GFP_NORETRY keeps the OOM killer from being invoked making the 32MB
padding on the allocation redundant. Remove the padding, add the flags
and go down the proper error path when alloc_pages() fails.
Change-Id: Ic0dedbadaf86e248b372b22cd3a41a5dabedb82e
Signed-off-by:
Jordan Crouse <jcrouse@codeaurora.org>
Loading
Please register or sign in to comment