[PATCH v9 12/14] PM / Hibernate: Call flush_icache_range() on pages restored in-place
Will Deacon
will.deacon at arm.com
Thu Apr 28 05:27:32 PDT 2016
On Thu, Apr 28, 2016 at 01:23:32PM +0100, James Morse wrote:
> On 28/04/16 13:15, Will Deacon wrote:
> > On Wed, Apr 27, 2016 at 05:47:11PM +0100, James Morse wrote:
> >> kernel/power/swap.c | 18 ++++++++++++++++++
> >> 1 file changed, 18 insertions(+)
> >>
> >> diff --git a/kernel/power/swap.c b/kernel/power/swap.c
> >> index 12cd989dadf6..a30645d2e93f 100644
> >> --- a/kernel/power/swap.c
> >> +++ b/kernel/power/swap.c
> >> @@ -37,6 +37,14 @@
> >> #define HIBERNATE_SIG "S1SUSPEND"
> >>
> >> /*
> >> + * When reading an {un,}compressed image, we may restore pages in place,
> >> + * in which case some architectures need these pages cleaning before they
> >> + * can be executed. We don't know which pages these may be, so clean the lot.
> >> + */
> >> +bool clean_pages_on_read = false;
> >> +bool clean_pages_on_decompress = false;
> >
> > Should these be static?
>
> Bother, yes.
>
> (They probably shouldn't be explicitly initialised either...)
Good, just checking. I can fix this locally.
Will
More information about the linux-arm-kernel
mailing list