--- zzzz-none-000/linux-4.9.276/arch/mips/mm/fault.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/arch/mips/mm/fault.c 2023-04-05 08:19:00.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;