RE: write_unlock: replace clear_bit with byte store

Chen, Kenneth W
2005-04-28T23:55:52Z

Christoph Lameter wrote on Thursday, April 28, 2005 3:52 PM
> +static inline void _raw_write_unlock(rwlock_t *x) {
> + u8 *y = (u8 *)x;
> + barrier();
> + asm volatile ("st1.rel.nta [%0] = r0\n\t" :: "r"(y+3) : "memory" ); }

Perhaps you should make this code icc friendly by not using asm directly.
Intel compiler doesn't support asm statement.