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:
49003a8
)
arm64: mm: remove pointless PAGE_MASKing
author
Mark Rutland
<
[email protected]
>
Wed, 9 Dec 2015 12:44:36 +0000
(12:44 +0000)
committer
Will Deacon
<
[email protected]
>
Thu, 10 Dec 2015 17:36:08 +0000
(17:36 +0000)
As pgd_offset{,_k} shift the input address by PGDIR_SHIFT, the sub-page
bits will always be shifted out. There is no need to apply PAGE_MASK
before this.
Signed-off-by: Mark Rutland <
[email protected]
>
Cc: Ard Biesheuvel <
[email protected]
>
Cc: Catalin Marinas <
[email protected]
>
Cc: Jeremy Linton <
[email protected]
>
Cc: Laura Abbott <
[email protected]
>
Cc: Will Deacon <
[email protected]
>
Signed-off-by: Will Deacon <
[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 bb42ac116a255a37c385c3da7d976420e42926b3..c04def90f3e437f32e111e102b22ae224dcbec12 100644
(file)
--- a/
arch/arm64/mm/mmu.c
+++ b/
arch/arm64/mm/mmu.c
@@
-288,7
+288,7
@@
static void __init create_mapping(phys_addr_t phys, unsigned long virt,
&phys, virt);
return;
}
- __create_mapping(&init_mm, pgd_offset_k(virt
& PAGE_MASK
), phys, virt,
+ __create_mapping(&init_mm, pgd_offset_k(virt), phys, virt,
size, prot, early_alloc);
}
@@
-309,7
+309,7
@@
static void create_mapping_late(phys_addr_t phys, unsigned long virt,
return;
}
- return __create_mapping(&init_mm, pgd_offset_k(virt
& PAGE_MASK
),
+ return __create_mapping(&init_mm, pgd_offset_k(virt),
phys, virt, size, prot, late_alloc);
}