lkml.org 
[lkml]   [2006]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Why Semaphore Hardware-Dependent?
Andi Kleen writes:

> > That's fair enough, but I would be opposed to
> > making semaphores bigger
>
> If the code was out of lined bigger wouldn't make much difference

I was referring to the data size not the code size.

> That would leave the fast path, but does it help that much there
> to have a more complicated implementation?

The implementation of the fast path is basically atomic_inc/dec.
Nothing more complicated.

Paul.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-29 03:03    [W:0.088 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site