lkml.org 
[lkml]   [2006]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: light weight counters: race free through local_t?
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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-15 18:09    [W:0.079 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site