projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1784b15
)
ARM: kill pmd_off()
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 26 May 2011 18:50:30 +0000
(19:50 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 26 May 2011 18:50:30 +0000
(19:50 +0100)
pmd_off() has only one user, so lets consolidate this into its only
user.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/mm.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mm/mm.h
b/arch/arm/mm/mm.h
index d2384106af9cbb32f96a61d54570ef39d391c5b7..5b3d7d543659154b36d3a568be429ebc096819e0 100644
(file)
--- a/
arch/arm/mm/mm.h
+++ b/
arch/arm/mm/mm.h
@@
-5,14
+5,9
@@
extern pmd_t *top_pmd;
#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
-static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
-{
- return pmd_offset(pud_offset(pgd, virt), virt);
-}
-
static inline pmd_t *pmd_off_k(unsigned long virt)
{
- return pmd_off
(pgd_offset_k(
virt), virt);
+ return pmd_off
set(pud_offset(pgd_offset_k(virt),
virt), virt);
}
struct mem_type {