提交 26dd8e02 编写于 作者: A Akinobu Mita 提交者: Tejun Heo

percpu: use bitmap_clear

Use bitmap_clear rather than clearing individual bits in a memory region.
Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Acked-by: NChristoph Lameter <cl@linux-foundation.org>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 dcd6c922
......@@ -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);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册