diff options
author | James Morse <james.morse@arm.com> | 2016-04-27 17:47:11 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-28 13:35:48 +0100 |
commit | f6cf0545ec697ddc278b7457b7d0c0d86a2ea88e (patch) | |
tree | 831a5fae14f6bd23cdb0ea97526cc4fc00164a4d /include | |
parent | 5003dbde45961dd7ab3d8a09ab9ad8bcb604db40 (diff) | |
download | linux-f6cf0545ec697ddc278b7457b7d0c0d86a2ea88e.tar.gz linux-f6cf0545ec697ddc278b7457b7d0c0d86a2ea88e.tar.bz2 linux-f6cf0545ec697ddc278b7457b7d0c0d86a2ea88e.zip |
PM / Hibernate: Call flush_icache_range() on pages restored in-place
Some architectures require code written to memory as if it were data to be
'cleaned' from any data caches before the processor can fetch them as new
instructions.
During resume from hibernate, the snapshot code copies some pages directly,
meaning these architectures do not get a chance to perform their cache
maintenance. Modify the read and decompress code to call
flush_icache_range() on all pages that are restored, so that the restored
in-place pages are guaranteed to be executable on these architectures.
Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
[will: make clean_pages_on_* static and remove initialisers]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions