Skip to content

Commit

Permalink
percpu: move vmalloc based chunk management into percpu-vm.c
Browse files Browse the repository at this point in the history
Separate out and move chunk management (creation/desctruction and
[de]population) code into percpu-vm.c which is included by percpu.c
and compiled together.  The interface for chunk management is defined
as follows.

 * pcpu_populate_chunk		- populate the specified range of a chunk
 * pcpu_depopulate_chunk	- depopulate the specified range of a chunk
 * pcpu_create_chunk		- create a new chunk
 * pcpu_destroy_chunk		- destroy a chunk, always preceded by full depop
 * pcpu_addr_to_page		- translate address to physical address
 * pcpu_verify_alloc_info	- check alloc_info is acceptable during init

Other than wrapping vmalloc_to_page() inside pcpu_addr_to_page() and
dummy pcpu_verify_alloc_info() implementation, this patch only moves
code around.  This separation is to allow alternate chunk management
implementation.

Signed-off-by: Tejun Heo <[email protected]>
Reviewed-by: David Howells <[email protected]>
Cc: Graff Yang <[email protected]>
Cc: Sonic Zhang <[email protected]>
  • Loading branch information
htejun committed May 1, 2010
1 parent 88999a8 commit 9f64553
Show file tree
Hide file tree
Showing 2 changed files with 475 additions and 428 deletions.
Loading

0 comments on commit 9f64553

Please sign in to comment.