linux_dsm_epyc7002/arch
Tejun Heo 9b7dbc7dc0 alpha: switch to dynamic percpu allocator
Alpha implements custom SHIFT_PERCPU_PTR for modules because percpu
area can be located far away from the 4G area where the module text is
located.  The custom SHIFT_PERCPU_PTR forces GOT usage using ldq
instruction with literal relocation; however, the relocation can't be
used with dynamically allocated percpu variables.  Fortunately,
similar result can be achieved by using weak percpu variable
definitions.

This patch makes alpha use weak definitions and switch to dynamic
percpu allocator.

asm/tlbflush.h was getting linux/sched.h via asm/percpu.h which no
longer needs it.  Include linux/sched.h directly in asm/tlbflush.h.

Compile tested.  Generation of litereal relocation verified.

This patch is based on Ivan Kokshaysky's alpha percpu patch.

[ Impact: use dynamic percpu allocator ]

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
2009-06-24 15:13:52 +09:00
..
alpha alpha: switch to dynamic percpu allocator 2009-06-24 15:13:52 +09:00
arm linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
avr32 linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
blackfin percpu: use DEFINE_PER_CPU_SHARED_ALIGNED() 2009-06-24 15:13:47 +09:00
cris CRIS: Change DEFINE_PER_CPU of current_pgd to be non volatile. 2009-06-24 15:13:41 +09:00
frv linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
h8300 linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
ia64 percpu: use DEFINE_PER_CPU_SHARED_ALIGNED() 2009-06-24 15:13:47 +09:00
m32r linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
m68k linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
m68knommu linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
microblaze linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
mips linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
mn10300 linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
parisc linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
powerpc percpu: cleanup percpu array definitions 2009-06-24 15:13:45 +09:00
s390 linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
sh linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
sparc linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
um linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
x86 percpu: clean up percpu variable definitions 2009-06-24 15:13:48 +09:00
xtensa linker script: throw away .discard section 2009-06-24 15:13:38 +09:00
.gitignore
Kconfig gcov: add gcov profiling infrastructure 2009-06-18 13:03:57 -07:00