From: Linus Torvalds Date: Tue, 13 Dec 2022 00:07:04 +0000 (-0800) Subject: Merge branch 'for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu X-Git-Tag: v6.6.7~3986 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca1443c7e75a28c6fde5c67cb1904b624cf43c36;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'for-6.2' of git://git./linux/kernel/git/dennis/percpu Pull percpu updates from Dennis Zhou: "Baoquan was nice enough to run some clean ups for percpu" * 'for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu: mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS mm/percpu.c: remove the lcm code since block size is fixed at page size mm/percpu: replace the goto with break mm/percpu: add comment to state the empty populated pages accounting mm/percpu: Update the code comment when creating new chunk mm/percpu: use list_first_entry_or_null in pcpu_reclaim_populated() mm/percpu: remove unused pcpu_map_extend_chunks --- ca1443c7e75a28c6fde5c67cb1904b624cf43c36 diff --cc include/linux/percpu.h index 3dbb6fb,70bc17d..1338ea2 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@@ -37,12 -37,11 +37,11 @@@ /* * Percpu allocator can serve percpu allocations before slab is * initialized which allows slab to depend on the percpu allocator. - * The following two parameters decide how much resource to - * preallocate for this. Keep PERCPU_DYNAMIC_RESERVE equal to or - * larger than PERCPU_DYNAMIC_EARLY_SIZE. + * The following parameter decide how much resource to preallocate + * for this. Keep PERCPU_DYNAMIC_RESERVE equal to or larger than + * PERCPU_DYNAMIC_EARLY_SIZE. */ - #define PERCPU_DYNAMIC_EARLY_SLOTS 128 -#define PERCPU_DYNAMIC_EARLY_SIZE (12 << 10) +#define PERCPU_DYNAMIC_EARLY_SIZE (20 << 10) /* * PERCPU_DYNAMIC_RESERVE indicates the amount of free area to piggy