diff options
author | Chen Haonan <chen.haonan2@zte.com.cn> | 2023-12-19 16:06:25 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-12-19 22:55:16 +0300 |
commit | 489c693bd04a2308865dc50f37bd0b5f6ad52deb (patch) | |
tree | 49db6814bc27b53bfceb5c50e183c498b51a85a2 /Documentation/power | |
parent | 71cd7e80cfde548959952eac7063aeaea1f2e1c6 (diff) | |
download | linux-489c693bd04a2308865dc50f37bd0b5f6ad52deb.tar.xz |
PM: hibernate: Use kmap_local_page() in copy_data_page()
kmap_atomic() has been deprecated in favor of kmap_local_page().
kmap_atomic() disables page-faults and preemption (the latter
only for !PREEMPT_RT kernels).The code between the mapping and
un-mapping in this patch does not depend on the above-mentioned
side effects.So simply replaced kmap_atomic() with kmap_local_page().
Signed-off-by: Chen Haonan <chen.haonan2@zte.com.cn>
[ rjw: Subject edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions