Re: [PATCH] "volatile considered harmful" document

From: Krzysztof Halasa
Date: Sun May 13 2007 - 12:30:17 EST


Robert Hancock <hancockr@xxxxxxx> writes:

> You don't need volatile in that case, rmb() can be used.

rmb() invalidates all compiler assumptions, it can be much slower.
--
Krzysztof Halasa
-
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/