Messages in this thread | | | Date | Wed, 08 Aug 2007 18:48:24 -0700 (PDT) | Subject | Re: [PATCH] make atomic_t volatile on all architectures | From | David Miller <> |
| |
From: Herbert Xu <herbert@gondor.apana.org.au> Date: Thu, 09 Aug 2007 09:03:27 +0800
> Such loops should always use something like cpu_relax() which comes > with a barrier.
This is an excellent point.
And it needs to be weighed with the error prone'ness Andrew mentioned. There probably is a middle ground somewhere. - 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/
| |