]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Only call store_updates_sp() on stores in do_page_fault()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 19 Apr 2017 12:56:24 +0000 (14:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Jun 2017 09:10:24 +0000 (19:10 +1000)
commit450d5cea0afdb441204c540dad2ea8023aba7d95
treea9ae6517de277020b14ea2fa0244fc04fdbd6c79
parent9c866bb3f3a853b077d1dd3d63f05946b2f07e71
powerpc/mm: Only call store_updates_sp() on stores in do_page_fault()

Function store_updates_sp() checks whether the faulting
instruction is a store updating r1. Therefore we can limit its calls
to store exceptions.

This patch is an improvement of commit ad05188e1f950 ("powerpc: Avoid
taking a data miss on every userspace instruction miss")

With the same microbenchmark app, run with 500 as argument, on an
MPC885 we get:

Before this patch: 152000 DTLB misses
After this patch:  147000 DTLB misses

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c