OSDN Git Service

PM / Hibernate: Add memory_rtree_find_bit function
authorJoerg Roedel <jroedel@suse.de>
Mon, 21 Jul 2014 10:26:58 +0000 (12:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Jul 2014 23:47:44 +0000 (01:47 +0200)
commit07a338236fdcd6caf41541dcdf879f5758020ab1
treefd6dadad36b3c75547ca33e0006a0a00d212fe75
parentf469f02dc6fa67f6c6a7d91400d08b9339147aed
PM / Hibernate: Add memory_rtree_find_bit function

Add a function to find a bit in the radix tree for a given
pfn. Also add code to the memory bitmap wrapper functions to
use the radix tree together with the existing memory bitmap
implementation.

On read accesses compare the results of both bitmaps to make
sure the radix tree behaves the same way.

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