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:
d77e20c
)
metag: mm: use hugetlb_bad_size()
author
Vaishali Thakkar
<
[email protected]
>
Fri, 20 May 2016 00:11:11 +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/metag/mm/hugetlbpage.c
patch
|
blob
|
history
diff --git
a/arch/metag/mm/hugetlbpage.c
b/arch/metag/mm/hugetlbpage.c
index b38700ae4e8429cdd6b56226ed82d523f4153d44..db1b7da91e4f496b332335c2c69adf73c13fbe70 100644
(file)
--- a/
arch/metag/mm/hugetlbpage.c
+++ b/
arch/metag/mm/hugetlbpage.c
@@
-239,6
+239,7
@@
static __init int setup_hugepagesz(char *opt)
if (ps == (1 << HPAGE_SHIFT)) {
hugetlb_add_hstate(HPAGE_SHIFT - PAGE_SHIFT);
} else {
+ hugetlb_bad_size();
pr_err("hugepagesz: Unsupported page size %lu M\n",
ps >> 20);
return 0;