hugetlbpage.c (31fa684096601d8fe5ea11e1c4d473229fef7c70) | hugetlbpage.c (3ed3a4f0ddffece942bb2661924d87be4ce63cb7) |
---|---|
1/* 2 * arch/arm64/mm/hugetlbpage.c 3 * 4 * Copyright (C) 2013 Linaro Ltd. 5 * 6 * Based on arch/x86/mm/hugetlbpage.c. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 110 unchanged lines hidden (view full) --- 119 WARN_ON(addr & (sz - 1)); 120 /* 121 * Note that if this code were ever ported to the 122 * 32-bit arm platform then it will cause trouble in 123 * the case where CONFIG_HIGHPTE is set, since there 124 * will be no pte_unmap() to correspond with this 125 * pte_alloc_map(). 126 */ | 1/* 2 * arch/arm64/mm/hugetlbpage.c 3 * 4 * Copyright (C) 2013 Linaro Ltd. 5 * 6 * Based on arch/x86/mm/hugetlbpage.c. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 110 unchanged lines hidden (view full) --- 119 WARN_ON(addr & (sz - 1)); 120 /* 121 * Note that if this code were ever ported to the 122 * 32-bit arm platform then it will cause trouble in 123 * the case where CONFIG_HIGHPTE is set, since there 124 * will be no pte_unmap() to correspond with this 125 * pte_alloc_map(). 126 */ |
127 pte = pte_alloc_map(mm, NULL, pmd, addr); | 127 pte = pte_alloc_map(mm, pmd, addr); |
128 } else if (sz == PMD_SIZE) { 129 if (IS_ENABLED(CONFIG_ARCH_WANT_HUGE_PMD_SHARE) && 130 pud_none(*pud)) 131 pte = huge_pmd_share(mm, addr, pud); 132 else 133 pte = (pte_t *)pmd_alloc(mm, pud, addr); 134 } else if (sz == (PMD_SIZE * CONT_PMDS)) { 135 pmd_t *pmd; --- 180 unchanged lines hidden --- | 128 } else if (sz == PMD_SIZE) { 129 if (IS_ENABLED(CONFIG_ARCH_WANT_HUGE_PMD_SHARE) && 130 pud_none(*pud)) 131 pte = huge_pmd_share(mm, addr, pud); 132 else 133 pte = (pte_t *)pmd_alloc(mm, pud, addr); 134 } else if (sz == (PMD_SIZE * CONT_PMDS)) { 135 pmd_t *pmd; --- 180 unchanged lines hidden --- |