[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1458736776-16201-1-git-send-email-vaishali.thakkar@oracle.com>
Date: Wed, 23 Mar 2016 18:09:36 +0530
From: Vaishali Thakkar <vaishali.thakkar@...cle.com>
To: akpm@...ux-foundation.org
Cc: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Vaishali Thakkar <vaishali.thakkar@...cle.com>,
Hillf Danton <hillf.zj@...baba-inc.com>,
Michal Hocko <mhocko@...e.com>,
Yaowei Bai <baiyaowei@...s.chinamobile.com>,
Dominik Dingel <dingel@...ux.vnet.ibm.com>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Paul Gortmaker <paul.gortmaker@...driver.com>,
Dave Hansen <dave.hansen@...ux.intel.com>
Subject: [PATCH v2 6/6] x86: mm: Use hugetlb_bad_size
Update the setup_hugepagesz function to call the routine
hugetlb_bad_size when unsupported hugepage size is found.
Signed-off-by: Vaishali Thakkar <vaishali.thakkar@...cle.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@...jp.nec.com>
Reviewed-by: Mike Kravetz <mike.kravetz@...cle.com>
Cc: Hillf Danton <hillf.zj@...baba-inc.com>
Cc: Michal Hocko <mhocko@...e.com>
Cc: Yaowei Bai <baiyaowei@...s.chinamobile.com>
Cc: Dominik Dingel <dingel@...ux.vnet.ibm.com>
Cc: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com>
Cc: Paul Gortmaker <paul.gortmaker@...driver.com>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>
---
Changes since v1:
- Separate different arch specific changes in different
patches instead of one
---
arch/x86/mm/hugetlbpage.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c
index 740d7ac..3ec44f8 100644
--- a/arch/x86/mm/hugetlbpage.c
+++ b/arch/x86/mm/hugetlbpage.c
@@ -165,6 +165,7 @@ static __init int setup_hugepagesz(char *opt)
} else if (ps == PUD_SIZE && cpu_has_gbpages) {
hugetlb_add_hstate(PUD_SHIFT - PAGE_SHIFT);
} else {
+ hugetlb_bad_size();
printk(KERN_ERR "hugepagesz: Unsupported page size %lu M\n",
ps >> 20);
return 0;
--
2.1.4
Powered by blists - more mailing lists