gpu: ion: do not ask for compound pages in system heap
authorDima Zavin <dima@android.com>
Fri, 13 Dec 2013 22:23:53 +0000 (14:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:38 +0000 (08:55 -0800)
Signed-off-by: Dima Zavin <dima@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c

index 98711ce03753e7c44c50ffffd5c87c8f0c4064fd..3f607df63809204af9fd3c01ced29a6578854406 100644 (file)
@@ -41,7 +41,7 @@ static struct page_info *alloc_largest_available(unsigned long size)
        for (i = 0; i < ARRAY_SIZE(orders); i++) {
                if (size < (1 << orders[i]) * PAGE_SIZE)
                        continue;
-               page = alloc_pages(GFP_HIGHUSER | __GFP_ZERO | __GFP_COMP |
+               page = alloc_pages(GFP_HIGHUSER | __GFP_ZERO |
                                   __GFP_NOWARN | __GFP_NORETRY, orders[i]);
                if (!page)
                        continue;