Skip to contentSkip to conversation

x86_64: Correct wrong comment in local.h

PATCH New [email protected] 1 participant 1 message Apr 13, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 88/198 x86_64: Correct wrong comment in local.h

From: "Andi Kleen" <[email protected]>

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

---

 25-akpm/include/asm-x86_64/local.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
include/asm-x86_64/local.h renamed from include/asm-x86_64/local.h~x86_64-correct-wrong-comment-in-localh +2 -1
diff -puN include/asm-x86_64/local.h~x86_64-correct-wrong-comment-in-localh include/asm-x86_64/local.h
@@ -45,7 +45,8 @@ static __inline__ void local_sub(unsigne
 		:"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))

_