arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / arm / mm / hugetlbpage.c
bloba1e5aace897a30a3fd5160e59282ce72446906fa
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * arch/arm/mm/hugetlbpage.c
5 * Copyright (C) 2012 ARM Ltd.
7 * Based on arch/x86/include/asm/hugetlb.h and Bill Carson's patches
8 */
10 #include <linux/init.h>
11 #include <linux/fs.h>
12 #include <linux/mm.h>
13 #include <linux/hugetlb.h>
14 #include <linux/pagemap.h>
15 #include <linux/err.h>
16 #include <linux/sysctl.h>
17 #include <asm/mman.h>
18 #include <asm/tlb.h>
19 #include <asm/tlbflush.h>
20 #include <asm/pgalloc.h>
23 * On ARM, huge pages are backed by pmd's rather than pte's, so we do a lot
24 * of type casting from pmd_t * to pte_t *.
27 int pud_huge(pud_t pud)
29 return 0;
32 int pmd_huge(pmd_t pmd)
34 return pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT);