lkml.org 
[lkml]   [2000]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.3.42 alpha updates
On Fri, Feb 04, 2000 at 04:06:28AM +0100, Andrea Arcangeli wrote:
> I finished now to fixup the alpha port for 2.3.42 (the smp cpu map update
> part is from Jay Estabrook).
>
> I developed from scratch rw semaphores based on spinlocks. The overhead
> seems quite load by looking the code and they are at least quite obviously
> right ;). BTW, they are not architecture-dependent so other archs can cut
> and past if necessary.

So put them to include/asm-generic/semaphore.h (and put the .c code say into
a comment), but not to alpha which has them already done properly.
You really want those rw semaphores to be fast and small (because especially
rwsem will most probably be non-contended in down_read), whereas the spinlock
version is neither. It is good to have a generic version to fix some port
quickly, but it is bad to stay at that implementation forever.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.41 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

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

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.234 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site