mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
percpu: rename pcpu_mem_alloc to pcpu_mem_zalloc
Currently pcpu_mem_alloc() is implemented always return zeroed memory. So rename it to make user like pcpu_get_pages_and_bitmap() know don't reinit it. Signed-off-by: Bob Liu <[email protected]> Reviewed-by: Pekka Enberg <[email protected]> Reviewed-by: Michal Hocko <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
f8f5ed7c99
commit
90459ce06f
2 changed files with 11 additions and 11 deletions
|
|
@ -50,14 +50,13 @@ static struct page **pcpu_get_pages_and_bitmap(struct pcpu_chunk *chunk,
|
|||
|
||||
if (!pages || !bitmap) {
|
||||
if (may_alloc && !pages)
|
||||
pages = pcpu_mem_alloc(pages_size);
|
||||
pages = pcpu_mem_zalloc(pages_size);
|
||||
if (may_alloc && !bitmap)
|
||||
bitmap = pcpu_mem_alloc(bitmap_size);
|
||||
bitmap = pcpu_mem_zalloc(bitmap_size);
|
||||
if (!pages || !bitmap)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
memset(pages, 0, pages_size);
|
||||
bitmap_copy(bitmap, chunk->populated, pcpu_unit_pages);
|
||||
|
||||
*bitmapp = bitmap;
|
||||
|
|
|
|||
Loading…
Reference in a new issue