tree de5f3374bfb56c0e5a4527b3b0127face20eca3f
parent 72e76be2fedb4db320a4855d870f731c1242a9d3
author Andi Kleen <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:08 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:08 -0700

[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]>

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

Index: include/asm-x86_64/local.h
===================================================================
--- e81ec1181cba1c29eaa898d3b474301b8dc2d298/include/asm-x86_64/local.h  
(mode:100644 sha1:169c223a8452177b6c37c02be7356aabc299da7d)
+++ de5f3374bfb56c0e5a4527b3b0127face20eca3f/include/asm-x86_64/local.h  
(mode:100644 sha1:c954f15c1a755f850c60b7e0f0c05a17b1feb2b8)
@@ -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