Re: VM fixes [4/4]

From: Linus Torvalds
Date: Fri Dec 24 2004 - 18:33:38 EST




On Fri, 24 Dec 2004, Andrea Arcangeli wrote:
>
> /*
> + * All archs should support atomic ops with
> + * 1 byte granularity.
> + */
> + unsigned char memdie;

This simply fundamentally isn't true, last I looked.

At least older alphas do _not_ support atomic byte accesses, and if you
want atomic accesses you need to either use the defined smp-atomic
functions (ie things like the bit set operations), or you need to use
"int", which afaik all architectures _do_ support atomic accesses to.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/