Re: [PATCH] powerpc/mm: some cleanup of do_page_fault()

2017-04-17 Thread Michael Ellerman
Christophe Leroy writes: > This patch is a bunch of small cleanups of the do_page_fault() > function: > 1/ Function store_updates_sp() checks whether the faulting > instruction is a store updating r1. Therefore we can limit its calls > to stores exceptions > 2/ Only the

Re: [PATCH] powerpc/mm: some cleanup of do_page_fault()

2017-04-17 Thread Michael Ellerman
Christophe Leroy writes: > This patch is a bunch of small cleanups of the do_page_fault() > function: > 1/ Function store_updates_sp() checks whether the faulting > instruction is a store updating r1. Therefore we can limit its calls > to stores exceptions > 2/ Only the get_user() in

Re: [PATCH] powerpc/mm: some cleanup of do_page_fault()

2017-04-17 Thread Aneesh Kumar K.V
Christophe Leroy writes: > This patch is a bunch of small cleanups of the do_page_fault() > function: > 1/ Function store_updates_sp() checks whether the faulting > instruction is a store updating r1. Therefore we can limit its calls > to stores exceptions > 2/ Only the

Re: [PATCH] powerpc/mm: some cleanup of do_page_fault()

2017-04-17 Thread Aneesh Kumar K.V
Christophe Leroy writes: > This patch is a bunch of small cleanups of the do_page_fault() > function: > 1/ Function store_updates_sp() checks whether the faulting > instruction is a store updating r1. Therefore we can limit its calls > to stores exceptions > 2/ Only the get_user() in

[PATCH] powerpc/mm: some cleanup of do_page_fault()

2017-04-13 Thread Christophe Leroy
This patch is a bunch of small cleanups of the do_page_fault() function: 1/ Function store_updates_sp() checks whether the faulting instruction is a store updating r1. Therefore we can limit its calls to stores exceptions 2/ Only the get_user() in store_updates_sp() has to be done outside the mm

[PATCH] powerpc/mm: some cleanup of do_page_fault()

2017-04-13 Thread Christophe Leroy
This patch is a bunch of small cleanups of the do_page_fault() function: 1/ Function store_updates_sp() checks whether the faulting instruction is a store updating r1. Therefore we can limit its calls to stores exceptions 2/ Only the get_user() in store_updates_sp() has to be done outside the mm