tree 588c42567e160508d01289534b8bff1afb447f64
parent fb78bc79098c78d820419c398fc8995a8f75478e
author Andi Kleen <[EMAIL PROTECTED]> Tue Apr 12 08:25:39 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:25:39 2005

[PATCH] x86_64: Correct wrong comment in local.h

local_t is actually a win over atomic_t because it does not need lock
prefixes.

Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 local.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

Index: include/asm-x86_64/local.h
===================================================================
--- c2bbb2a8714257aab5ed9d1a142c06e305f30e61/include/asm-x86_64/local.h  
(mode:100644 sha1:fb95195ed8776357d52424a1ce15c8fca82a7f77)
+++ 588c42567e160508d01289534b8bff1afb447f64/include/asm-x86_64/local.h  
(mode:100644 sha1:99e82c422496ff90a0e3d1a70d2bfa9a3911d7e4)
@@ -45,7 +45,8 @@
                :"ir" (i), "m" (v->counter));
 }
 
-/* On x86, these are no better than the atomic variants. */
+/* On x86-64 these are better than the atomic variants on SMP kernels
+   because they dont use a lock prefix. */
 #define __local_inc(l)         local_inc(l)
 #define __local_dec(l)         local_dec(l)
 #define __local_add(i,l)       local_add((i),(l))
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to