[commtech] Prevent prefetch in batch queue

Prevent prefetch of state variable in BatchQueue by adding padding
between the buffers and state variable.
This commit is contained in:
Thomas Preud'homme 2011-03-02 12:49:09 +01:00
parent 1388b6d556
commit 023552a4de
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@
struct channel
{
void * volatile buf[2 * BUF_SIZE / sizeof(void *)] __attribute__ ((aligned (CACHE_LINE_SIZE)));
int unused[20] __attribute__ ((aligned (CACHE_LINE_SIZE)));
volatile int state __attribute__ ((aligned (CACHE_LINE_SIZE)));
int idx __attribute__ ((aligned (CACHE_LINE_SIZE)));
};