percpu: update comments to reflect that percpu allocations are always zero-filled

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stephane Eranian <eranian@google.com>
This commit is contained in:
Tejun Heo 2010-09-10 11:01:56 +02:00
parent 677243d749
commit 9329ba9704
1 changed files with 6 additions and 5 deletions

View File

@ -826,8 +826,8 @@ fail_unlock_mutex:
* @size: size of area to allocate in bytes * @size: size of area to allocate in bytes
* @align: alignment of area (max PAGE_SIZE) * @align: alignment of area (max PAGE_SIZE)
* *
* Allocate percpu area of @size bytes aligned at @align. Might * Allocate zero-filled percpu area of @size bytes aligned at @align.
* sleep. Might trigger writeouts. * Might sleep. Might trigger writeouts.
* *
* CONTEXT: * CONTEXT:
* Does GFP_KERNEL allocation. * Does GFP_KERNEL allocation.
@ -846,9 +846,10 @@ EXPORT_SYMBOL_GPL(__alloc_percpu);
* @size: size of area to allocate in bytes * @size: size of area to allocate in bytes
* @align: alignment of area (max PAGE_SIZE) * @align: alignment of area (max PAGE_SIZE)
* *
* Allocate percpu area of @size bytes aligned at @align from reserved * Allocate zero-filled percpu area of @size bytes aligned at @align
* percpu area if arch has set it up; otherwise, allocation is served * from reserved percpu area if arch has set it up; otherwise,
* from the same dynamic area. Might sleep. Might trigger writeouts. * allocation is served from the same dynamic area. Might sleep.
* Might trigger writeouts.
* *
* CONTEXT: * CONTEXT:
* Does GFP_KERNEL allocation. * Does GFP_KERNEL allocation.