lkml.org 
[lkml]   [2005]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch 088/198] x86_64: Correct wrong comment in local.h
From
Date

From: "Andi Kleen" <ak@suse.de>

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

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

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

diff -puN include/asm-x86_64/local.h~x86_64-correct-wrong-comment-in-localh include/asm-x86_64/local.h
--- 25/include/asm-x86_64/local.h~x86_64-correct-wrong-comment-in-localh 2005-04-12 03:21:24.242451488 -0700
+++ 25-akpm/include/asm-x86_64/local.h 2005-04-12 03:21:24.245451032 -0700
@@ -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))
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-04-13 05:29    [W:0.023 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site