Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276029
b: refs/heads/master
c: 67589c7
h: refs/heads/master
i:
  276027: d265994
v: v3
  • Loading branch information
Dave Young authored and Tejun Heo committed Nov 23, 2011
1 parent 7ecd6e8 commit 4c38940
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a855b84c3d8c73220d4d3cd392a7bee7c83de70e
refs/heads/master: 67589c71456b0346500629967292dea3802230b6
11 changes: 11 additions & 0 deletions trunk/mm/percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,17 @@ bool is_kernel_percpu_address(unsigned long addr)
* address. The caller is responsible for ensuring @addr stays valid
* until this function finishes.
*
* percpu allocator has special setup for the first chunk, which currently
* supports either embedding in linear address space or vmalloc mapping,
* and, from the second one, the backing allocator (currently either vm or
* km) provides translation.
*
* The addr can be tranlated simply without checking if it falls into the
* first chunk. But the current code reflects better how percpu allocator
* actually works, and the verification can discover both bugs in percpu
* allocator itself and per_cpu_ptr_to_phys() callers. So we keep current
* code.
*
* RETURNS:
* The physical address for @addr.
*/
Expand Down

0 comments on commit 4c38940

Please sign in to comment.