diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-07-24 06:28:38 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 19:47:23 +0200 |
commit | 0d83304c7e7bd3b05be90281b3a47841bc8f057a (patch) | |
tree | 148e2dcfbbe385356af87629b59e71262adc68ce /kernel/workqueue.c | |
parent | pm: add new PM_EVENT codes for runtime power transitions (diff) | |
download | linux-0d83304c7e7bd3b05be90281b3a47841bc8f057a.tar.xz linux-0d83304c7e7bd3b05be90281b3a47841bc8f057a.zip |
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 <akinobu.mita@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions