]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/percpu.c: optimize the code in pcpu_setup_first_chunk() a little bit
authorBaoquan He <bhe@redhat.com>
Sat, 22 Jul 2023 01:14:37 +0000 (09:14 +0800)
committerDennis Zhou <dennis@kernel.org>
Fri, 25 Aug 2023 15:04:59 +0000 (08:04 -0700)
commit7ee1e758bebe13d96217bcfd5230892ed44760e7
tree6b7afec57953b733b6888135beba6d49a57406bd
parent5b672085e70c2ea40f4c9d6a23848079bf0ff700
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: Baoquan He <bhe@redhat.com>
[Dennis: reworded first chunk init comment]
Signed-off-by: Dennis Zhou <dennis@kernel.org>
mm/percpu.c