lkml.org 
[lkml]   [2013]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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




\
 
 \ /
  Last update: 2013-02-14 02:41    [W:0.238 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site