]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc64: Initialize xl_hugepage_shift to 0
authorNitin Gupta <nitin.m.gupta@oracle.com>
Tue, 30 Aug 2016 18:39:09 +0000 (11:39 -0700)
committerAllen Pais <allen.pais@oracle.com>
Tue, 8 Nov 2016 10:06:41 +0000 (15:36 +0530)
Currently, this global is incorrectly initialized
to the default hugepage size (HPAGE_SHIFT) which
causes non-8M hugepages fail to initialize.

Orabug: 24439278

Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/mm/init_64.c

index 572a25f4b0a9029c175e0ce581e5050738db8fde..c28abb62367c7bff002d94a1a403fd2d69a4fade 100644 (file)
@@ -439,7 +439,7 @@ static void __update_mmu_tsb_insert(struct mm_struct *mm, unsigned long tsb_inde
 }
 
 #ifdef CONFIG_HUGETLB_PAGE
-unsigned int xl_hugepage_shift = HPAGE_SHIFT;
+unsigned int xl_hugepage_shift;
 static unsigned long xl_hugepage_pte;
 
 static bool is_xl_hugetlb_pte(pte_t pte)