search for: vm_wipeonsuspend

Displaying 1 result from an estimated 1 matches for "vm_wipeonsuspend".

2020 Jul 03
0
[RFC]: mm,power: introduce MADV_WIPEONSUSPEND
...ower/suspend.c > index c874a7026e24..4282b7f0dd03 100644 > --- a/kernel/power/suspend.c > +++ b/kernel/power/suspend.c > @@ -323,6 +323,78 @@ static bool platform_suspend_again(suspend_state_t state) > suspend_ops->suspend_again() : false; > } > > +#ifdef VM_WIPEONSUSPEND > +static void memory_cleanup_on_suspend(suspend_state_t state) > +{ > + struct task_struct *p; > + struct mm_struct *mm; > + struct vm_area_struct *vma; > + struct page *pages[32]; > + unsigned long max_pages_per_loop = ARRAY_SIZE(pages); > + &...