Re: [PATCH] x86-64, rwsem: Avoid store forwarding hazzard in __downgrade_write

From: H. Peter Anvin
Date: Sat Feb 13 2010 - 03:17:25 EST


On 02/12/2010 11:13 PM, Avi Kivity wrote:
> +#ifndef CONFIG_X86_64
> + "i" (-RWSEM_WAITING_BIAS)
> +#else
> + "r" (-RWSEM_WAITING_BIAS)
> #endif
> + : "memory", "cc");

Using an "er" constraint here should work on both architectures.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
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/