On Fri, Jun 07, 2019 at 11:30:46AM +0100, Mark Rutland wrote: > On Fri, Jun 07, 2019 at 02:43:05PM +0530, Anshuman Khandual wrote: > > This consolidates page fault information capture and move them bit earlier. > > While here it also adds an wrapper is_write_abort(). It also saves some > > cycles by replacing multiple user_mode() calls into a single one earlier > > during the fault. > > > > Signed-off-by: Anshuman Khandual <anshuman.khand...@arm.com> > > Cc: Catalin Marinas <catalin.mari...@arm.com> > > Cc: Will Deacon <will.dea...@arm.com> > > Cc: Mark Rutland <mark.rutl...@arm.com> > > Cc: James Morse <james.mo...@arm.com> > > Cc: Andrey Konovalov <andreyk...@google.com> > > --- > > arch/arm64/mm/fault.c | 26 +++++++++++++++++++------- > > 1 file changed, 19 insertions(+), 7 deletions(-) > > As I mentioned previously, I doubt that this has any measureable impact > on performance, and other than commenting the caveats w.r.t. cache > maintenance, I'm not sure this makes things any clearer. > > However, AFAICT it is correct, so I'll leave that to Catalin:
I only merged the is_write_abort() wrapper from this patch (changed the commit log as well). -- Catalin