Skip to content
Commit 44bf431b authored by Bibo Mao's avatar Bibo Mao Committed by Thomas Bogendoerfer
Browse files

mm/memory.c: Add memory read privilege on page fault handling



Here add pte_sw_mkyoung function to make page readable on MIPS
platform during page fault handling. This patch improves page
fault latency about 10% on my MIPS machine with lmbench
lat_pagefault case.

It is noop function on other arches, there is no negative
influence on those architectures.

Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
Acked-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 7df67697
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment