Skip to content

Commit 06d8fbc

Browse files
kiryltorvalds
authored andcommitted
Revert "mm: disable fault around on emulated access bit architecture"
This reverts commit d0834a6. After revert of 5c0a85f ("mm: make faultaround produce old ptes") faultaround doesn't have dependencies on hardware accessed bit, so let's revert this one too. Link: http://lkml.kernel.org/r/1465893750-44080-3-git-send-email-kirill.shutemov@linux.intel.com Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: "Huang, Ying" <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Vinayak Menon <[email protected]> Cc: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 315d09b commit 06d8fbc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mm/memory.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,16 +2898,8 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address,
28982898
update_mmu_cache(vma, address, pte);
28992899
}
29002900

2901-
/*
2902-
* If architecture emulates "accessed" or "young" bit without HW support,
2903-
* there is no much gain with fault_around.
2904-
*/
29052901
static unsigned long fault_around_bytes __read_mostly =
2906-
#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
2907-
PAGE_SIZE;
2908-
#else
29092902
rounddown_pow_of_two(65536);
2910-
#endif
29112903

29122904
#ifdef CONFIG_DEBUG_FS
29132905
static int fault_around_bytes_get(void *data, u64 *val)

0 commit comments

Comments
 (0)