From: Grant Grundler Date: Wed, 17 Oct 2007 06:29:28 +0000 (-0700) Subject: atomic_ops.txt: mention local_t X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a2142b08cbc2172e96cf8acced4ebba68aad05d;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git atomic_ops.txt: mention local_t local_t is a variant of atomic_t and has related ops to match. Add reference for local_t documentation to atomic_ops.txt. Signed-off-by: Grant Grundler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/atomic_ops.txt b/Documentation/atomic_ops.txt index 05851e9982e..938f9995705 100644 --- a/Documentation/atomic_ops.txt +++ b/Documentation/atomic_ops.txt @@ -14,6 +14,10 @@ suffice: typedef struct { volatile int counter; } atomic_t; +local_t is very similar to atomic_t. If the counter is per CPU and only +updated by one CPU, local_t is probably more appropriate. Please see +Documentation/local_ops.txt for the semantics of local_t. + The first operations to implement for atomic_t's are the initializers and plain reads.