File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ static inline bool pte_user(pte_t pte)
741
741
*/
742
742
#define __pte_to_swp_entry (pte ) ((swp_entry_t) { pte_val((pte)) & ~_PAGE_PTE })
743
743
#define __swp_entry_to_pte (x ) __pte((x).val | _PAGE_PTE)
744
+ #define __pmd_to_swp_entry (pmd ) (__pte_to_swp_entry(pmd_pte(pmd)))
745
+ #define __swp_entry_to_pmd (x ) (pte_pmd(__swp_entry_to_pte(x)))
744
746
745
747
#ifdef CONFIG_MEM_SOFT_DIRTY
746
748
#define _PAGE_SWP_SOFT_DIRTY (1UL << (SWP_TYPE_BITS + _PAGE_BIT_SWAP_TYPE))
@@ -1091,6 +1093,12 @@ static inline pte_t *pmdp_ptep(pmd_t *pmd)
1091
1093
#define pmd_soft_dirty (pmd ) pte_soft_dirty(pmd_pte(pmd))
1092
1094
#define pmd_mksoft_dirty (pmd ) pte_pmd(pte_mksoft_dirty(pmd_pte(pmd)))
1093
1095
#define pmd_clear_soft_dirty (pmd ) pte_pmd(pte_clear_soft_dirty(pmd_pte(pmd)))
1096
+
1097
+ #ifdef CONFIG_ARCH_ENABLE_THP_MIGRATION
1098
+ #define pmd_swp_mksoft_dirty (pmd ) pte_pmd(pte_swp_mksoft_dirty(pmd_pte(pmd)))
1099
+ #define pmd_swp_soft_dirty (pmd ) pte_swp_soft_dirty(pmd_pte(pmd))
1100
+ #define pmd_swp_clear_soft_dirty (pmd ) pte_pmd(pte_swp_clear_soft_dirty(pmd_pte(pmd)))
1101
+ #endif
1094
1102
#endif /* CONFIG_HAVE_ARCH_SOFT_DIRTY */
1095
1103
1096
1104
#ifdef CONFIG_NUMA_BALANCING
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ config PPC_BOOK3S_64
72
72
select PPC_HAVE_PMU_SUPPORT
73
73
select SYS_SUPPORTS_HUGETLBFS
74
74
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
75
+ select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
75
76
select ARCH_SUPPORTS_NUMA_BALANCING
76
77
select IRQ_WORK
77
78
You can’t perform that action at this time.
0 commit comments