WSL2-Linux-Kernel/arch/nds32
Peter Xu daf7bf5d90 mm/nds32: use general page fault accounting
Use the general page fault accounting by passing regs into
handle_mm_fault().  It naturally solve the issue of multiple page fault
accounting when page fault retry happened.

Fix PERF_COUNT_SW_PAGE_FAULTS perf event manually for page fault retries,
by moving it before taking mmap_sem.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Greentime Hu <green.hu@gmail.com>
Cc: Nick Hu <nickhu@andestech.com>
Cc: Vincent Chen <deanbo422@gmail.com>
Link: http://lkml.kernel.org/r/20200707225021.200906-13-peterx@redhat.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:58:03 -07:00
..
boot nds32: remove unneeded clean-files for DTB 2019-11-21 16:03:27 +08:00
configs kbuild: add CONFIG_HEADERS_INSTALL and loosen the dependency of samples 2019-06-15 19:57:01 +09:00
include uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
kernel nds32: use uaccess_kernel in show_regs 2020-08-12 10:57:58 -07:00
lib
math-emu
mm mm/nds32: use general page fault accounting 2020-08-12 10:58:03 -07:00
Kconfig arch: remove HAVE_COPY_THREAD_TLS 2020-07-04 23:41:37 +02:00
Kconfig.cpu nds32: Fix typo in Kconfig.cpu 2019-11-21 16:05:07 +08:00
Kconfig.debug
Makefile kconfig: make arch/*/configs/defconfig the default of KBUILD_DEFCONFIG 2019-06-09 15:08:18 +09:00