diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2024-07-20 16:40:59 +0200 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-07-20 16:40:59 +0200 |
commit | b7a2750ef268e2723acb785c4903b0b78c3dcbc6 (patch) | |
tree | 5c86b9d99b40f18a36f2186c8570364559c2db51 /arch/loongarch/Kconfig | |
parent | LoongArch: Add RANDOMIZE_KSTACK_OFFSET support (diff) | |
download | linux-b7a2750ef268e2723acb785c4903b0b78c3dcbc6.tar.xz linux-b7a2750ef268e2723acb785c4903b0b78c3dcbc6.zip |
LoongArch: Add ARCH_HAS_PTE_DEVMAP support
In order for things like get_user_pages() to work on ZONE_DEVICE memory,
we need a software PTE bit to identify device-backed PFNs. Hook this up
along with the relevant helpers to join in with ARCH_HAS_PTE_DEVMAP.
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/Kconfig')
-rw-r--r-- | arch/loongarch/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index fcf6451b4e38..be5249ebd8fc 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -22,6 +22,7 @@ config LOONGARCH select ARCH_HAS_KERNEL_FPU_SUPPORT if CPU_HAS_FPU select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE + select ARCH_HAS_PTE_DEVMAP select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_INLINE_READ_LOCK if !PREEMPTION |