From: Akinobu Mita Date: Thu, 24 Jul 2008 04:28:38 +0000 (-0700) Subject: pm: hibernation: simplify memory bitmap X-Git-Tag: v2.6.27-rc1~733 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d83304c7e7bd3b05be90281b3a47841bc8f057a;p=pandora-kernel.git pm: hibernation: simplify memory bitmap This patch simplifies the memory bitmap manipulations. - remove the member size in struct bm_block It is not necessary for struct bm_block to have the number of bit chunks that can be calculated by using end_pfn and start_pfn. - use find_next_bit() for memory_bm_next_pfn No need to invent the bitmap library only for the memory bitmap. Signed-off-by: Akinobu Mita Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed