]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
percpu: factor out pcpu_addr_in_first/reserved_chunk() and update per_cpu_ptr_to_phys()
authorTejun Heo <tj@kernel.org>
Fri, 9 Apr 2010 09:57:00 +0000 (18:57 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 1 May 2010 06:30:49 +0000 (08:30 +0200)
commit020ec6537aa65c18e9084c568d7b94727f2026fd
tree0466d590090ed9db214846887e7ea636fcd26169
parentbe1066bbcd443a65df312fdecea7e4959adedb45
percpu: factor out pcpu_addr_in_first/reserved_chunk() and update per_cpu_ptr_to_phys()

Factor out pcpu_addr_in_first/reserved_chunk() from
pcpu_chunk_addr_search() and use it to update per_cpu_ptr_to_phys()
such that it handles first chunk differently from the rest.

This patch doesn't cause any functional change and is to prepare for
percpu nommu support.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: Graff Yang <graff.yang@gmail.com>
Cc: Sonic Zhang <sonic.adi@gmail.com>
mm/percpu.c