--- zzzz-none-000/linux-4.9.231/arch/mips/mm/fault.c 2020-07-22 07:10:54.000000000 +0000 +++ falcon-5590-729/linux-4.9.231/arch/mips/mm/fault.c 2022-03-30 12:03:33.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;