diff options
author | 2025-01-12 07:26:55 -0800 | |
---|---|---|
committer | 2025-02-18 20:39:24 +0100 | |
commit | d42044aad6528e0c9533dbaf836d1b0fbb19fe2d (patch) | |
tree | 0fa890031566f3911761307370aed21f28dbb4ff /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 6.14-rc3 (diff) | |
download | wireguard-linux-d42044aad6528e0c9533dbaf836d1b0fbb19fe2d.tar.xz wireguard-linux-d42044aad6528e0c9533dbaf836d1b0fbb19fe2d.zip |
PM: hibernate: Replace deprecated kmap_atomic() with kmap_local_page()
kmap_atomic() is deprecated and should be replaced with kmap_local_page()
[1][2]. kmap_local_page() is faster in kernels with HIGHMEM enabled, can
take page faults, and allows preemption.
According to [2], this replacement is safe as long as the code between
kmap_atomic() and kunmap_atomic() does not implicitly depend on disabling
page faults or preemption. In all of the call sites in this patch, the only
thing happening between mapping and unmapping pages is copy_page() calls,
and I don't suspect they depend on disabling page faults or preemption.
Link: https://lwn.net/Articles/836144/ [1]
Link: https://docs.kernel.org/mm/highmem.html#temporary-virtual-mappings [2]
Signed-off-by: David Reaver <me@davidreaver.com>
Link: https://patch.msgid.link/20250112152658.20132-1-me@davidreaver.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions