Commit:     1a2142b08cbc2172e96cf8acced4ebba68aad05d
Parent:     74beb9db77930be476b267ec8518a642f39a04bf
Author:     Grant Grundler <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 16 23:29:28 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 08:42:56 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 Documentation/atomic_ops.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Documentation/atomic_ops.txt b/Documentation/atomic_ops.txt
index 05851e9..938f999 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.
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to