|
|
@@ -1234,21 +1234,13 @@ extern pmd_t pmdp_invalidate(struct vm_area_struct *vma, unsigned long address,
|
|
|
|
|
|
#define pmd_move_must_withdraw pmd_move_must_withdraw
|
|
|
struct spinlock;
|
|
|
-static inline int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
|
|
|
- struct spinlock *old_pmd_ptl,
|
|
|
- struct vm_area_struct *vma)
|
|
|
-{
|
|
|
- if (radix_enabled())
|
|
|
- return false;
|
|
|
- /*
|
|
|
- * Archs like ppc64 use pgtable to store per pmd
|
|
|
- * specific information. So when we switch the pmd,
|
|
|
- * we should also withdraw and deposit the pgtable
|
|
|
- */
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
+extern int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
|
|
|
+ struct spinlock *old_pmd_ptl,
|
|
|
+ struct vm_area_struct *vma);
|
|
|
+/*
|
|
|
+ * Hash translation mode use the deposited table to store hash pte
|
|
|
+ * slot information.
|
|
|
+ */
|
|
|
#define arch_needs_pgtable_deposit arch_needs_pgtable_deposit
|
|
|
static inline bool arch_needs_pgtable_deposit(void)
|
|
|
{
|