]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Remove get_cpu_ptr() comment reference
authorJonathan Corbet <corbet@lwn.net>
Sat, 9 Oct 2004 08:05:26 +0000 (01:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 9 Oct 2004 08:05:26 +0000 (01:05 -0700)
Since get_cpu_ptr() went away, we probably shouldn't tease developers by
telling them to use it in the comments.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/percpu.h

index a493e372201eb565fadb4e8de872cd89371e7978..5451eb1e781d37f67d29ab2e140bef34182fec8e 100644 (file)
@@ -24,8 +24,8 @@ struct percpu_data {
 
 /* 
  * Use this to get to a cpu's version of the per-cpu object allocated using
- * alloc_percpu.  If you want to get "this cpu's version", maybe you want
- * to use get_cpu_ptr... 
+ * alloc_percpu.  Non-atomic access to the current CPU's version should
+ * probably be combined with get_cpu()/put_cpu().
  */ 
 #define per_cpu_ptr(ptr, cpu)                   \
 ({                                              \