projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
631a9dc
)
[SPARC]: Use shorter form of "get_zeroed_page".
author
Robert P. J. Day
<rpjday@crashcourse.ca>
Wed, 13 Feb 2008 06:08:55 +0000
(22:08 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 13 Feb 2008 06:08:55 +0000
(22:08 -0800)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/sun4c.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/mm/sun4c.c
b/arch/sparc/mm/sun4c.c
index c0442e8c4b1548a784037d1dbe223e996dcefd95..2375fe9dc3124346673dfb462d2a137b05374a92 100644
(file)
--- 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
if ((pte = sun4c_pte_alloc_one_fast(mm, address)) != NULL)
return pte;
- pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT);
- if (pte)
- memset(pte, 0, PAGE_SIZE);
+ pte = (pte_t *)get_zeroed_page(GFP_KERNEL|__GFP_REPEAT);
return pte;
}