mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[IA64] fix ia64 is_hugepage_only_range
fix is_hugepage_only_range() definition to be "overlaps" instead of "within architectural restricted hugetlb address range". Simplify the ia64 specific code that used to use is_hugepage_only_range() to just check which region the address is in. Signed-off-by: Ken Chen <[email protected]> Signed-off-by: Tony Luck <[email protected]>
This commit is contained in:
parent
1c2e02750b
commit
2332c9ae79
2 changed files with 4 additions and 5 deletions
|
|
@ -149,7 +149,7 @@ typedef union ia64_va {
|
|||
| (REGION_OFFSET(x) >> (HPAGE_SHIFT-PAGE_SHIFT)))
|
||||
# define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
|
||||
# define is_hugepage_only_range(mm, addr, len) \
|
||||
(REGION_NUMBER(addr) == RGN_HPAGE && \
|
||||
(REGION_NUMBER(addr) == RGN_HPAGE || \
|
||||
REGION_NUMBER((addr)+(len)-1) == RGN_HPAGE)
|
||||
extern unsigned int hpage_shift;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue