Re: [patch] spinlocks: remove 'volatile'

Ingo Molnar
2006-07-08T07:40:54Z

* Ingo Molnar <mingo@elte.hu> wrote:

> > [...] In fact, your spin-lock code already inserts "rep nops" and I
> > never implied that they should be removed. I said only that "volatile"
> > still needs to be used, not some macro that tells the compiler that
> > everything in memory probably got trashed. [...]
>
> your position here does seem to make much sense to me, so please help me
^--- not
> understand it. You suggest that the assembly code should be left alone.
> But then why do you need the volatile keyword to begin with?