diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2008-02-13 01:08:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-13 01:08:55 -0500 |
commit | b3dd5b82560eef53a537e409f50261d0b33c75ce (patch) | |
tree | 2a3c2c111437018d3975f8cbeb32839ef30628e5 /arch/sparc/mm | |
parent | 631a9dca60ddd7d84a08171a14828e9cfb667d48 (diff) |
[SPARC]: Use shorter form of "get_zeroed_page".
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r-- | arch/sparc/mm/sun4c.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sparc/mm/sun4c.c b/arch/sparc/mm/sun4c.c index c0442e8c4b15..2375fe9dc312 100644 --- a/arch/sparc/mm/sun4c.c +++ b/arch/sparc/mm/sun4c.c | |||
@@ -1941,9 +1941,7 @@ static pte_t *sun4c_pte_alloc_one_kernel(struct mm_struct *mm, unsigned long add | |||
1941 | if ((pte = sun4c_pte_alloc_one_fast(mm, address)) != NULL) | 1941 | if ((pte = sun4c_pte_alloc_one_fast(mm, address)) != NULL) |
1942 | return pte; | 1942 | return pte; |
1943 | 1943 | ||
1944 | pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT); | 1944 | pte = (pte_t *)get_zeroed_page(GFP_KERNEL|__GFP_REPEAT); |
1945 | if (pte) | ||
1946 | memset(pte, 0, PAGE_SIZE); | ||
1947 | return pte; | 1945 | return pte; |
1948 | } | 1946 | } |
1949 | 1947 | ||