[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:
parent
1388b6d556
commit
023552a4de
|
@ -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)));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue