[lkml]   [2005]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 04/11] mutex subsystem, add include/asm-x86_64/mutex.h

* Eric Dumazet <> wrote:

> >+ :"=D" (dummy) \
> >+ : "D" (v) \
> >+ : "rax", "rsi", "rdx", "rcx", \
> >+ "r8", "r9", "r10", "r11", "memory"); \
> >+} while (0)
> Hi Ingo
> I do think this assembly is not very fair. It has an *insane* register
> pressure for the compiler : The fast path is thus not so fast.

if you look at the compiler output you'll notice that it's not a problem
actually: this fastpath is only inlined into the generic code, where it
has no clobbering side-effects.

you are right in that if this were to be inlined left and right, this
would be quite bad.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-12-27 16:45    [W:0.035 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site