Re: [PATCH 15/25] mm/openrisc: Use mm_fault_accounting()

From: Stafford Horne
Date: Tue Jun 16 2020 - 14:11:54 EST


On Mon, Jun 15, 2020 at 06:15:57PM -0400, Peter Xu wrote:
> Use the new mm_fault_accounting() helper for page fault accounting.
>
> Avoid doing page fault accounting multiple times if the page fault is retried.
> Also, the perf events for page faults will be accounted too when the config has
> CONFIG_PERF_EVENTS defined.
>
> CC: Jonas Bonn <jonas@xxxxxxxxxxxx>
> CC: Stefan Kristiansson <stefan.kristiansson@xxxxxxxxxxxxx>
> CC: Stafford Horne <shorne@xxxxxxxxx>
> CC: openrisc@xxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Peter Xu <peterx@xxxxxxxxxx>

Acked-by: Stafford Horne <shorne@xxxxxxxxx>