percpu: add chunk->base_addr
commitbba174f5e03a40a4ab1c63a2272ea5530b98a067
authorTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:51 +0000 (14 15:00 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:51 +0000 (14 15:00 +0900)
treeea3607d0730cf4a0b938b4bc7574ae02dc138792
parentfb435d5233f8b6f9b93c11d6304d8e98fed03234
percpu: add chunk->base_addr

The only thing percpu allocator wants to know about a vmalloc area is
the base address.  Instead of requiring chunk->vm, add
chunk->base_addr which contains the necessary value.  This simplifies
the code a bit and makes the dummy first_vm unnecessary.  This change
will ease allowing a chunk to be mapped by multiple vms.

Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c