--- zzzz-none-000/linux-4.9.218/arch/mips/mm/fault.c 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ac-750/linux-4.9.218/arch/mips/mm/fault.c 2022-11-30 09:46:19.000000000 +0000 @@ -27,6 +27,9 @@ #include #include /* For VMALLOC_END */ #include +#if defined(CONFIG_AVM_POWER) +#include +#endif /*--- #if defined(CONFIG_AVM_POWER) ---*/ int show_unhandled_signals = 1; @@ -152,7 +155,13 @@ * make sure we exit gracefully rather than endlessly redo * the fault. */ +#if defined(CONFIG_AVM_POWER) + avm_page_statistic_fault_get(); +#endif /*--- #if defined(CONFIG_AVM_POWER) ---*/ fault = handle_mm_fault(vma, address, flags); +#if defined(CONFIG_AVM_POWER) + avm_page_statistic_fault_put(); +#endif /*--- #if defined(CONFIG_AVM_POWER) ---*/ if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) return;