VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Valentin Schneider <valentin.schneider@arm.com> 2021-08-11 21:13:54 +0100 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:37 +0800 commit: f4c6f41ea4e7a39b05da24f487f02fa41cfdf131 parent: 1cf350e52a4e7220b9ab5e09f546b9ce05295bea
Commit Summary:
arm64: mm: Make arch_faults_on_old_pte() check for migratability
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index dfa76afa0ccf..421156d9de47 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -995,7 +995,7 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
  */
 static inline bool arch_faults_on_old_pte(void)
 {
-	WARN_ON(preemptible());
+	WARN_ON(is_migratable());
 
 	return !cpu_has_hw_af();
 }