Skip to content

Commit

Permalink
percpu: use bitmap_clear
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akinobu Mita authored and Tejun Heo committed Jan 20, 2012
1 parent dcd6c92 commit 26dd8e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/percpu-vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 26dd8e0

Please sign in to comment.