diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2012-01-20 10:15:23 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-01-20 12:23:16 -0500 |
commit | 26dd8e0291fd699142722632c6588a438d6ef0e4 (patch) | |
tree | 42c9d4e7d88f71850e025d94ebdcd820041110a8 /mm/percpu-vm.c | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
percpu: use bitmap_clear
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>
Diffstat (limited to 'mm/percpu-vm.c')
-rw-r--r-- | mm/percpu-vm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/percpu-vm.c b/mm/percpu-vm.c index 12a48a88c0d8..405d331804c3 100644 --- a/mm/percpu-vm.c +++ b/mm/percpu-vm.c | |||
@@ -184,8 +184,7 @@ static void pcpu_unmap_pages(struct pcpu_chunk *chunk, | |||
184 | page_end - page_start); | 184 | page_end - page_start); |
185 | } | 185 | } |
186 | 186 | ||
187 | for (i = page_start; i < page_end; i++) | 187 | bitmap_clear(populated, page_start, page_end - page_start); |
188 | __clear_bit(i, populated); | ||
189 | } | 188 | } |
190 | 189 | ||
191 | /** | 190 | /** |