Re: ldcw inline assembler patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 16, 2008 at 9:56 PM, Carlos O'Donell
<carlos@xxxxxxxxxxxxxxxx> wrote:
> The compiler creates memory temporaries all the times and expects the
> optimizers to see that the temporaries are not needed. However,
> sometimes the temporaries aren't removed.

It turns out this should never happen because raw_spinlock_t->lock is volatile.

Therefore the memory clobber is not required.

The memory barriers will prevent code from being moved before the lock
or past the unlock.

Cheers,
Carlos.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux