remarkable-linux/arch
Tejun Heo fb435d5233 percpu: add pcpu_unit_offsets[]
Currently units are mapped sequentially into address space.  This
patch adds pcpu_unit_offsets[] which allows units to be mapped to
arbitrary offsets from the chunk base address.  This is necessary to
allow sparse embedding which might would need to allocate address
ranges and memory areas which aren't aligned to unit size but
allocation atom size (page or large page size).  This also simplifies
things a bit by removing the need to calculate offset from unit
number.

With this change, there's no need for the arch code to know
pcpu_unit_size.  Update pcpu_setup_first_chunk() and first chunk
allocators to return regular 0 or -errno return code instead of unit
size or -errno.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David S. Miller <davem@davemloft.net>
2009-08-14 15:00:51 +09:00
..
alpha Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
arm Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
avr32 Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
blackfin Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
cris Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
frv Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
h8300 Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
ia64 Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
m32r Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
m68k Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
m68knommu Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
microblaze Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
mips Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
mn10300 Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
parisc Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
powerpc Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
s390 Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
sh Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
sparc percpu: add pcpu_unit_offsets[] 2009-08-14 15:00:51 +09:00
um Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
x86 percpu: add pcpu_unit_offsets[] 2009-08-14 15:00:51 +09:00
xtensa Merge branch 'percpu-for-linus' into percpu-for-next 2009-08-14 14:45:31 +09:00
.gitignore
Kconfig gcov: add gcov profiling infrastructure 2009-06-18 13:03:57 -07:00