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

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

 



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.


Johannes


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

  Powered by Linux