Re: Once again: test_and_set for CPUs w/o LL/SC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johannes Stezenbach wrote:
> 
> I wrote:
> 
> > sysmips is history with current glibc since the Linux kernel emulates
> > LL/SC for CPUs that don't have it. This emulation is actually faster than
> > sysmips. (You'd think it's slower because it's one syscall vs. two
> > emulated instructions. But with LL/SC glibc can use test-and-set
>                                                       ^^^^^^^^^^^^
> > which enables a more efficient linux-threads mutex implementation.)
> 
> Oops, I meant compare-and-swap.

Implement new sysmips then.

Regards,
Gleb.


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux