projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
569d2c3
)
[ARM] Convert open-coded __pmd_populate to use inline function
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Thu, 1 Sep 2005 13:45:18 +0000
(14:45 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 1 Sep 2005 13:45:18 +0000
(14:45 +0100)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/mm-armv.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mm/mm-armv.c
b/arch/arm/mm/mm-armv.c
index 4dae00bf7a563f5c9c101cde18536b5f48f5463d..8cb024aa88bdd54019770978435135f51e73f001 100644
(file)
--- a/
arch/arm/mm/mm-armv.c
+++ b/
arch/arm/mm/mm-armv.c
@@
-295,14
+295,10
@@
alloc_init_page(unsigned long virt, unsigned long phys, unsigned int prot_l1, pg
pte_t *ptep;
if (pmd_none(*pmdp)) {
- unsigned long pmdval;
ptep = alloc_bootmem_low_pages(2 * PTRS_PER_PTE *
sizeof(pte_t));
- pmdval = __pa(ptep) | prot_l1;
- pmdp[0] = __pmd(pmdval);
- pmdp[1] = __pmd(pmdval + 256 * sizeof(pte_t));
- flush_pmd_entry(pmdp);
+ __pmd_populate(pmdp, __pa(ptep) | prot_l1);
}
ptep = pte_offset_kernel(pmdp, virt);