summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-09-10 11:01:56 +0200
committerTejun Heo <tj@kernel.org>2010-09-10 11:01:56 +0200
commit9329ba9704f6bd51a735982e0d4a3eed72c3294f (patch)
tree8524ba7a84d5306d6fde91552655b10b0d06da61 /mm
parent677243d7494d09bfa782425f063a6013de53c35b (diff)
downloadop-kernel-dev-9329ba9704f6bd51a735982e0d4a3eed72c3294f.zip
op-kernel-dev-9329ba9704f6bd51a735982e0d4a3eed72c3294f.tar.gz
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/percpu.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index 0cd4bf6..12dea33 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -826,8 +826,8 @@ fail_unlock_mutex:
* @size: size of area to allocate in bytes
* @align: alignment of area (max PAGE_SIZE)
*
- * Allocate percpu area of @size bytes aligned at @align. Might
- * sleep. Might trigger writeouts.
+ * Allocate zero-filled percpu area of @size bytes aligned at @align.
+ * Might sleep. Might trigger writeouts.
*
* CONTEXT:
* Does GFP_KERNEL allocation.
@@ -846,9 +846,10 @@ EXPORT_SYMBOL_GPL(__alloc_percpu);
* @size: size of area to allocate in bytes
* @align: alignment of area (max PAGE_SIZE)
*
- * Allocate percpu area of @size bytes aligned at @align from reserved
- * percpu area if arch has set it up; otherwise, allocation is served
- * from the same dynamic area. Might sleep. Might trigger writeouts.
+ * Allocate zero-filled percpu area of @size bytes aligned at @align
+ * from reserved percpu area if arch has set it up; otherwise,
+ * allocation is served from the same dynamic area. Might sleep.
+ * Might trigger writeouts.
*
* CONTEXT:
* Does GFP_KERNEL allocation.
OpenPOWER on IntegriCloud