]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Abstract indexing of lppaca structs
authorPaul Mackerras <paulus@samba.org>
Thu, 12 Aug 2010 20:18:15 +0000 (20:18 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 2 Sep 2010 04:07:31 +0000 (14:07 +1000)
commitfc14c047356c9470860ca78ce9a9bbc0a7cbca8e
tree3f86ef67c9242a585f08a1220d3113718b438869
parentfe622a3686eb78a1ea1ccebc8b2cc97c918b28a2
powerpc: Abstract indexing of lppaca structs

Currently we have the lppaca structs as a simple array of NR_CPUS
entries, taking up space in the data section of the kernel image.
In future we would like to allocate them dynamically, so this
abstracts out the accesses to the array, making it easier to
change how we locate the lppaca for a given cpu in future.
Specifically, lppaca[cpu] changes to lppaca_of(cpu).

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/lppaca.h
arch/powerpc/kernel/lparcfg.c
arch/powerpc/lib/locks.c
arch/powerpc/platforms/iseries/dt.c
arch/powerpc/platforms/iseries/smp.c
arch/powerpc/platforms/pseries/dtl.c
arch/powerpc/platforms/pseries/lpar.c