mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Add arch_has_hw_pte_young() to indicate whether the h/w accessed bit is supported. For those CPUs that don't, e.g., arm64 v8.0, we skip walk_mm_list() and solely rely on lru_gen_scan_around(). This still retains ~80% of the performance improvement. BUG=b:123039911 TEST=Built Signed-off-by: Yu Zhao <yuzhao@google.com> Change-Id: I32e1380bc5966b4cb3ba5a9796c95af61fa8fc4a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2991949 Reviewed-by: Yu Zhao <yuzhao@chromium.org> Reviewed-by: Sonny Rao <sonnyrao@chromium.org> Tested-by: Yu Zhao <yuzhao@chromium.org> Commit-Queue: Yu Zhao <yuzhao@chromium.org> Signed-off-by: azrim <mirzaspc@gmail.com>