projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd6c92
)
percpu: use bitmap_clear
author
Akinobu Mita
<akinobu.mita@gmail.com>
Fri, 20 Jan 2012 15:15:23 +0000
(
00:15
+0900)
committer
Tejun Heo
<tj@kernel.org>
Fri, 20 Jan 2012 17:23:16 +0000
(09:23 -0800)
Use bitmap_clear rather than clearing individual bits in a memory region.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu-vm.c
patch
|
blob
|
history
diff --git
a/mm/percpu-vm.c
b/mm/percpu-vm.c
index
12a48a8
..
405d331
100644
(file)
--- a/
mm/percpu-vm.c
+++ b/
mm/percpu-vm.c
@@
-184,8
+184,7
@@
static void pcpu_unmap_pages(struct pcpu_chunk *chunk,
page_end - page_start);
}
- for (i = page_start; i < page_end; i++)
- __clear_bit(i, populated);
+ bitmap_clear(populated, page_start, page_end - page_start);
}
/**