>>>>> "manfred" == Manfred Spraul <manfred@colorfullife.com> writes:
Hi
manfred> Is that bit often set, or usually zero?
manfred> If the bit is usually zero, we might replace TestAndClear with
manfred> TestAndTestAndClear: we avoid the lock cycle if the bit was already 0.
manfred> Atomic operations are extremely slow, e.g. the ia64 spinlock asm code
manfred> internally uses TestAndTestAndSet in spin_lock();
Could you elaborate please? I see no reference to TestAndTestAndSet
in the code. The bit is supposed to be normally 0, but it depends of
your workload. How do you write that function/macro????
TIA, Juan.
-- In theory, practice and theory are the same, but in practice they are different -- Larry McVoy- 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/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:11 EST