--- zzzz-none-000/linux-4.4.271/arch/arm/kernel/process.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/arch/arm/kernel/process.c 2023-04-19 10:22:27.000000000 +0000 @@ -37,6 +37,17 @@ #include #include +#include +#include +#include + +#include +#include + +#if defined(CONFIG_AVM_ENHANCED) +#include +#endif/*--- #if defined(CONFIG_AVM_ENHANCED) ---*/ + #ifdef CONFIG_CC_STACKPROTECTOR #include unsigned long __stack_chk_guard __read_mostly; @@ -66,10 +77,14 @@ void arch_cpu_idle(void) { + avm_cpu_wait_start(); + if (arm_pm_idle) - arm_pm_idle(); + arm_pm_idle(); else - cpu_do_idle(); + cpu_do_idle(); + + avm_cpu_wait_end(); local_irq_enable(); } @@ -178,6 +193,9 @@ printk("Control: %08x%s\n", ctrl, buf); } #endif +#if defined(CONFIG_AVM_ENHANCED) + show_register_memoryclassifier(regs); +#endif/*--- #if defined(CONFIG_AVM_ENHANCED) ---*/ } void show_regs(struct pt_regs * regs)