Re: [tip:core/locking] x86/smp: Move waiting on contended ticketlock out of line

From: H. Peter Anvin
Date: Wed Feb 13 2013 - 19:56:08 EST


On 02/13/2013 10:30 AM, Linus Torvalds wrote:
>
> Sadly, gcc doesn't seem to allow specifying which registers are
> clobbered any easy way, which means that both the caller and the
> callee *both* tend to need to have some asm interface. So we bothered
> to do this for __read_lock_failed, but we have *not* bothered to do
> the same for the otherwise very similar __mutex_fastpath_lock() case,
> for example.
>

It does for the callee, but only on a whole-file basis. It would be a
lot nicer if we could do it with function attributes.

-hpa


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