Revert "ANDROID: Fix build errors caused by missing mmu_notifier_lock definition"
This reverts commit dbc5eb8e31
.
Reason for revert: performance regression.
Bug: 234527424
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I685f09cfe4d2b3fef9e88953f794186c0e790657
This commit is contained in:
parent
9a526b9527
commit
f25e13c1bc
|
@ -580,10 +580,10 @@ struct mm_struct {
|
|||
struct file __rcu *exe_file;
|
||||
#ifdef CONFIG_MMU_NOTIFIER
|
||||
struct mmu_notifier_subscriptions *notifier_subscriptions;
|
||||
#endif /* CONFIG_MMU_NOTIFIER */
|
||||
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
|
||||
struct percpu_rw_semaphore *mmu_notifier_lock;
|
||||
#endif /* CONFIG_SPECULATIVE_PAGE_FAULT */
|
||||
#endif /* CONFIG_MMU_NOTIFIER */
|
||||
#if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !USE_SPLIT_PMD_PTLOCKS
|
||||
pgtable_t pmd_huge_pte; /* protected by page_table_lock */
|
||||
#endif
|
||||
|
|
|
@ -772,7 +772,7 @@ static inline void mmu_notifier_synchronize(void)
|
|||
|
||||
#endif /* CONFIG_MMU_NOTIFIER */
|
||||
|
||||
#if defined(CONFIG_SPECULATIVE_PAGE_FAULT)
|
||||
#if defined(CONFIG_MMU_NOTIFIER) && defined(CONFIG_SPECULATIVE_PAGE_FAULT)
|
||||
|
||||
static inline bool mmu_notifier_trylock(struct mm_struct *mm)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue