Re: Semi up to date JOBS list

From: Juan J. Quintela (
Date: Fri Jun 16 2000 - 06:58:26 EST

>>>>> "manfred" == Manfred Spraul <> writes:


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 Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:11 EST