David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * arch/arm/include/asm/hugetlb.h |
| 4 | * |
| 5 | * Copyright (C) 2012 ARM Ltd. |
| 6 | * |
| 7 | * Based on arch/x86/include/asm/hugetlb.h |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef _ASM_ARM_HUGETLB_H |
| 11 | #define _ASM_ARM_HUGETLB_H |
| 12 | |
| 13 | #include <asm/page.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 14 | #include <asm/hugetlb-3level.h> |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 15 | #include <asm-generic/hugetlb.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 16 | |
| 17 | static inline int is_hugepage_only_range(struct mm_struct *mm, |
| 18 | unsigned long addr, unsigned long len) |
| 19 | { |
| 20 | return 0; |
| 21 | } |
| 22 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 23 | static inline void arch_clear_hugepage_flags(struct page *page) |
| 24 | { |
| 25 | clear_bit(PG_dcache_clean, &page->flags); |
| 26 | } |
| 27 | |
| 28 | #endif /* _ASM_ARM_HUGETLB_H */ |