]> Git Repo - linux.git/commitdiff
arm64: mm: use hugetlb_bad_size()
authorVaishali Thakkar <[email protected]>
Fri, 20 May 2016 00:11:08 +0000 (17:11 -0700)
committerLinus 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

index 589fd28e1fb5de8b923fc99ee0fa35d79b1cd6af..aa8aee7d69293ef8004b4883bebde05493ece111 100644 (file)
@@ -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;
        }
This page took 0.050629 seconds and 4 git commands to generate.