Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7ee1e758 authored by Baoquan He's avatar Baoquan He Committed by Dennis Zhou
Browse files

mm/percpu.c: optimize the code in pcpu_setup_first_chunk() a little bit


This removes the need of local varibale 'chunk', and optimize the code
calling pcpu_alloc_first_chunk() to initialize reserved chunk and
dynamic chunk to make it simpler.

Signed-off-by: default avatarBaoquan He <bhe@redhat.com>
[Dennis: reworded first chunk init comment]
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
parent 5b672085
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment