PM / Hibernate: Implement position keeping in radix tree
authorJoerg Roedel <jroedel@suse.de>
Mon, 21 Jul 2014 10:26:59 +0000 (12:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Jul 2014 23:47:44 +0000 (01:47 +0200)
commit3a20cb1779616ebcaade393cc9beac0e03cbffef
treef4552ea9a73fc2f055a6f23e4926faa9bbb28c04
parent07a338236fdcd6caf41541dcdf879f5758020ab1
PM / Hibernate: Implement position keeping in radix tree

Add code to remember the last position that was requested in
the radix tree. Use it as a cache for faster linear walking
of the bitmap in the memory_bm_rtree_next_pfn() function
which is also added with this patch.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/snapshot.c