summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHaesung Kim <mattkim513@gmail.com>2026-07-14 16:26:27 +0900
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-23 15:25:00 +0200
commit032270c30836ef1bf7739b7b9568bd77de1d9a9b (patch)
tree684d6c0112a5f3620c7058b87062b267e5cea715 /tools/perf/scripts/python
parent21d5c4cee31c5ce78f6decc7fafc7e7759af391f (diff)
PM: hibernate: swap: defer linking the next map page
Delay allocating and linking the next swap_map_page until another image page actually needs to be recorded. The previous code linked and wrote a new swap map page as soon as the current one became full. When the image size was an exact multiple of MAP_PAGE_ENTRIES, that left an empty final map page that existed only to terminate the on-disk chain. Instead, keep a full map page in memory and only allocate the next map page when the next image page arrives. This preserves the resume chain while avoiding an unnecessary swap slot allocation and write for the empty swap map page. Signed-off-by: Haesung Kim <mattkim513@gmail.com> Link: https://patch.msgid.link/20260714072627.3165744-1-mattkim513@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions