Re: light weight counters: race free through local_t?

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

 



Hmm... What about side effects such as pipeline stalls? fetchadd is 
semaphore operation. Typically we use acquire semantics for volatiles. 
Here the fetchadd has release semantics.

If we would use release semantics then the fetchadd would require all 
prior accesses to be complete.

Acquire semantics may be easier. But the best would be a fetchadd without 
any serialization that would be like the inc/dec memory on i386, which 
does not exist in the IA64 instruction set.

-
: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux