Re: [patch] Re: using long instead of atomic_t when only set/readis required

From: Linus Torvalds
Date: Mon Mar 03 2008 - 17:24:42 EST




On Mon, 3 Mar 2008, Rafael J. Wysocki wrote:
>
> Well something like this could happen, in theory, on a "32-bit" architecture
> with a 16-bit bus.

No it couldn't.

That would only be true if there is no cache, and no cache coherency.

Basically, Linux requires a cache-coherent architecture to work in SMP.
Anything else is insane (except as a cluster).

So there is no way we can see partial updates, except with terminally
broken hardware that we would never support anyway for tons of other
reasons.

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/