Messages in this thread | | | Date | Wed, 13 Feb 2013 16:54:35 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [tip:core/locking] x86/smp: Move waiting on contended ticket lock out of line |
| |
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
| |