Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

percpu: Remove __per_cpu_load

__per_cpu_load is now always equal to __per_cpu_start.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250123190747.745588-15-brgerst@gmail.com

authored by

Brian Gerst and committed by
Ingo Molnar
4b00c116 e23cff68

+3 -4
+1 -1
include/asm-generic/sections.h
··· 39 39 extern char _sinittext[], _einittext[]; 40 40 extern char __start_ro_after_init[], __end_ro_after_init[]; 41 41 extern char _end[]; 42 - extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[]; 42 + extern char __per_cpu_start[], __per_cpu_end[]; 43 43 extern char __kprobes_text_start[], __kprobes_text_end[]; 44 44 extern char __entry_text_start[], __entry_text_end[]; 45 45 extern char __start_rodata[], __end_rodata[];
-1
include/asm-generic/vmlinux.lds.h
··· 1084 1084 #define PERCPU_SECTION(cacheline) \ 1085 1085 . = ALIGN(PAGE_SIZE); \ 1086 1086 .data..percpu : AT(ADDR(.data..percpu) - LOAD_OFFSET) { \ 1087 - __per_cpu_load = .; \ 1088 1087 PERCPU_INPUT(cacheline) \ 1089 1088 } 1090 1089
+2 -2
mm/percpu.c
··· 3071 3071 continue; 3072 3072 } 3073 3073 /* copy and return the unused part */ 3074 - memcpy(ptr, __per_cpu_load, ai->static_size); 3074 + memcpy(ptr, __per_cpu_start, ai->static_size); 3075 3075 pcpu_fc_free(ptr + size_sum, ai->unit_size - size_sum); 3076 3076 } 3077 3077 } ··· 3240 3240 flush_cache_vmap_early(unit_addr, unit_addr + ai->unit_size); 3241 3241 3242 3242 /* copy static data */ 3243 - memcpy((void *)unit_addr, __per_cpu_load, ai->static_size); 3243 + memcpy((void *)unit_addr, __per_cpu_start, ai->static_size); 3244 3244 } 3245 3245 3246 3246 /* we're ready, commit */