[Cbe-oss-dev] [PATCH 8/10] MARS: workload queue mutex protection
Kazunori Asayama
asayama at sm.sony.co.jp
Fri Aug 29 14:46:53 EST 2008
Geoff Levand wrote:
> A solution would be to have a union:
>
> MARS_WORKLOAD_PER_BLOCK = 16
> union mars_workload_queue_block {
> uint32_t lock;
> struct mars_workload_queue_block_bits bits[MARS_WORKLOAD_PER_BLOCK];
> }
>
> The operations on mars_workload_queue_block.bits would know that bits[0]
> is not used. It should be faster a non-power of 2 divide.
That sounds a good idea. Mano-san, please consider providing this
improvement later.
--
(ASAYAMA Kazunori
(asayama at sm.sony.co.jp))
t
More information about the cbe-oss-dev
mailing list