linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ralf@linux-mips.org
Date: Thu, 13 Jan 2005 17:37:47 +0000
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ralf@ftp.linux-mips.org 05/01/13 17:37:41

Modified files:
        arch/mips/mm   : init.c 

Log message:
        Use __GFP_ZERO.

diff -urN linux/arch/mips/mm/init.c linux/arch/mips/mm/init.c
--- linux/arch/mips/mm/init.c   2005/01/13 14:05:30     1.70
+++ linux/arch/mips/mm/init.c   2005/01/13 17:37:41     1.71
@@ -61,7 +61,7 @@
        else
                order = 0;
 
-       empty_zero_page = __get_free_pages(GFP_KERNEL, order);
+       empty_zero_page = __get_free_pages(GFP_KERNEL | __GFP_ZERO, order);
        if (!empty_zero_page)
                panic("Oh boy, that early out of memory?");
 
@@ -74,7 +74,6 @@
 
        size = PAGE_SIZE << order;
        zero_page_mask = (size - 1) & PAGE_MASK;
-       memset((void *)empty_zero_page, 0, size);
 
        return 1UL << order;
 }

<Prev in Thread] Current Thread [Next in Thread>