Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26dd8e02 authored by Akinobu Mita's avatar Akinobu Mita Committed by Tejun Heo
Browse files

percpu: use bitmap_clear



Use bitmap_clear rather than clearing individual bits in a memory region.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Acked-by: default avatarChristoph Lameter <cl@linux-foundation.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent dcd6c922
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);
}

/**