projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
315d09b
)
Revert "mm: disable fault around on emulated access bit architecture"
author
Kirill A. Shutemov
<
[email protected]
>
Fri, 24 Jun 2016 21:49:48 +0000
(14:49 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 25 Jun 2016 00:23:52 +0000
(17:23 -0700)
This reverts commit
d0834a6c2c5b0c76cfb806bd7dba6556d8b4edbb
.
After revert of
5c0a85fad949
("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]
>
mm/memory.c
patch
|
blob
|
history
diff --git
a/mm/memory.c
b/mm/memory.c
index 61fe7e7b56bf9f38753f260ffe5c44a0ff4cacb4..cd1f29e4897e3e5207071ed9cccabc55f86e6a87 100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-2898,16
+2898,8
@@
void do_set_pte(struct vm_area_struct *vma, unsigned long address,
update_mmu_cache(vma, address, pte);
}
-/*
- * If architecture emulates "accessed" or "young" bit without HW support,
- * there is no much gain with fault_around.
- */
static unsigned long fault_around_bytes __read_mostly =
-#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
- PAGE_SIZE;
-#else
rounddown_pow_of_two(65536);
-#endif
#ifdef CONFIG_DEBUG_FS
static int fault_around_bytes_get(void *data, u64 *val)