From: Andi Kleen Date: Sat, 16 Apr 2005 22:25:08 +0000 (-0700) Subject: [PATCH] x86_64: Correct wrong comment in local.h X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1c1734090ebcd31e479798b3af4c260ae09bf3a4;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/local.h b/include/asm-x86_64/local.h index 169c223a8452..c954f15c1a75 100644 --- a/include/asm-x86_64/local.h +++ b/include/asm-x86_64/local.h @@ -45,7 +45,8 @@ static __inline__ void local_sub(unsigned long i, local_t *v) :"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))