From: Stefan Asserhall Date: Tue, 21 Jan 2020 11:11:07 +0000 (+0100) Subject: microblaze: Define percpu sestion in linker file X-Git-Tag: v5.7-rc1~167^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06951c9115fe20d479d35c3b4a95c2de0e1d587b;p=thirdparty%2Fkernel%2Flinux.git microblaze: Define percpu sestion in linker file Adding SMP requires to have percpu section defined. Signed-off-by: Stefan Asserhall Signed-off-by: Michal Simek Reviewed-by: Arnd Bergmann --- diff --git a/arch/microblaze/kernel/vmlinux.lds.S b/arch/microblaze/kernel/vmlinux.lds.S index 2c09fa3a8a01b..df07b3d06cd6b 100644 --- a/arch/microblaze/kernel/vmlinux.lds.S +++ b/arch/microblaze/kernel/vmlinux.lds.S @@ -13,6 +13,7 @@ ENTRY(microblaze_start) #define RO_EXCEPTION_TABLE_ALIGN 16 +#include #include #include #include @@ -89,6 +90,8 @@ SECTIONS { _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ; } + PERCPU_SECTION(L1_CACHE_BYTES) + . = ALIGN(PAGE_SIZE); __init_begin = .;