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:
9fee021
)
arm64: mm: use hugetlb_bad_size()
author
Vaishali Thakkar
<
[email protected]
>
Fri, 20 May 2016 00:11:08 +0000
(17:11 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 20 May 2016 02:12:14 +0000
(19:12 -0700)
Update setup_hugepagesz() to call hugetlb_bad_size() when unsupported
hugepage size is found.
Signed-off-by: Vaishali Thakkar <
[email protected]
>
Reviewed-by: Mike Kravetz <
[email protected]
>
Reviewed-by: Naoya Horiguchi <
[email protected]
>
Acked-by: Michal Hocko <
[email protected]
>
Cc: Hillf Danton <
[email protected]
>
Cc: Yaowei Bai <
[email protected]
>
Cc: Dominik Dingel <
[email protected]
>
Cc: Kirill A. Shutemov <
[email protected]
>
Cc: Paul Gortmaker <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/arm64/mm/hugetlbpage.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/hugetlbpage.c
b/arch/arm64/mm/hugetlbpage.c
index 589fd28e1fb5de8b923fc99ee0fa35d79b1cd6af..aa8aee7d69293ef8004b4883bebde05493ece111 100644
(file)
--- a/
arch/arm64/mm/hugetlbpage.c
+++ b/
arch/arm64/mm/hugetlbpage.c
@@
-307,6
+307,7
@@
static __init int setup_hugepagesz(char *opt)
} else if (ps == PUD_SIZE) {
hugetlb_add_hstate(PUD_SHIFT - PAGE_SHIFT);
} else {
+ hugetlb_bad_size();
pr_err("hugepagesz: Unsupported page size %lu K\n", ps >> 10);
return 0;
}