We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6613476 commit c83ccdcCopy full SHA for c83ccdc
drivers/counter/counter-core.c
@@ -31,10 +31,11 @@ struct counter_device_allochelper {
31
struct counter_device counter;
32
33
/*
34
- * This is cache line aligned to ensure private data behaves like if it
35
- * were kmalloced separately.
+ * This ensures private data behaves like if it were kmalloced
+ * separately. Also ensures the minimum alignment for safe DMA
36
+ * operations (which may or may not mean cache alignment).
37
*/
- unsigned long privdata[] ____cacheline_aligned;
38
+ unsigned long privdata[] __aligned(ARCH_DMA_MINALIGN);
39
};
40
41
static void counter_device_release(struct device *dev)
0 commit comments