projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d239865
)
arm64: mmu: drop pXd_present() checks from pXd_free_pYd_table()
author
Will Deacon
<
[email protected]
>
Fri, 28 Dec 2018 08:37:42 +0000
(
00:37
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 28 Dec 2018 20:11:50 +0000
(12:11 -0800)
The core code already has a check for pXd_none(), so remove it from the
architecture implementation.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Will Deacon <
[email protected]
>
Cc: Chintan Pandya <
[email protected]
>
Cc: Toshi Kani <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Michal Hocko <
[email protected]
>
Cc: "H. Peter Anvin" <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Sean Christopherson <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/arm64/mm/mmu.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/mmu.c
b/arch/arm64/mm/mmu.c
index da513a1facf4fc4f1c45ecaab82321e5a1d1787f..13b80361d9f5ec0922ffa47b95c7e04c14fe6813 100644
(file)
--- a/
arch/arm64/mm/mmu.c
+++ b/
arch/arm64/mm/mmu.c
@@
-1003,10
+1003,8
@@
int pmd_free_pte_page(pmd_t *pmdp, unsigned long addr)
pmd = READ_ONCE(*pmdp);
- if (!pmd_present(pmd))
- return 1;
if (!pmd_table(pmd)) {
- VM_WARN_ON(
!pmd_table(pmd)
);
+ VM_WARN_ON(
1
);
return 1;
}
@@
-1026,10
+1024,8
@@
int pud_free_pmd_page(pud_t *pudp, unsigned long addr)
pud = READ_ONCE(*pudp);
- if (!pud_present(pud))
- return 1;
if (!pud_table(pud)) {
- VM_WARN_ON(
!pud_table(pud)
);
+ VM_WARN_ON(
1
);
return 1;
}