From 584d8b96b5dbfe891db3b064e30f080c49ce3036 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Sat, 16 Apr 2005 15:25:08 -0700 Subject: [PATCH] --- yaml --- r: 89 b: refs/heads/master c: 1c1734090ebcd31e479798b3af4c260ae09bf3a4 h: refs/heads/master i: 87: 10c727db9690a33cba75156ae5393100dd237123 v: v3 --- [refs] | 2 +- trunk/include/asm-x86_64/local.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 12ebe8400b77..29b25de89171 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 72e76be2fedb4db320a4855d870f731c1242a9d3 +refs/heads/master: 1c1734090ebcd31e479798b3af4c260ae09bf3a4 diff --git a/trunk/include/asm-x86_64/local.h b/trunk/include/asm-x86_64/local.h index 169c223a8452..c954f15c1a75 100644 --- a/trunk/include/asm-x86_64/local.h +++ b/trunk/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))