|
@@ -17,7 +17,6 @@
|
|
|
|
|
|
#include <trace/events/kmem.h>
|
|
#include <trace/events/kmem.h>
|
|
|
|
|
|
-#ifndef ARCH_KMALLOC_MINALIGN
|
|
|
|
/*
|
|
/*
|
|
* Enforce a minimum alignment for the kmalloc caches.
|
|
* Enforce a minimum alignment for the kmalloc caches.
|
|
* Usually, the kmalloc caches are cache_line_size() aligned, except when
|
|
* Usually, the kmalloc caches are cache_line_size() aligned, except when
|
|
@@ -27,6 +26,9 @@
|
|
* ARCH_KMALLOC_MINALIGN allows that.
|
|
* ARCH_KMALLOC_MINALIGN allows that.
|
|
* Note that increasing this value may disable some debug features.
|
|
* Note that increasing this value may disable some debug features.
|
|
*/
|
|
*/
|
|
|
|
+#ifdef ARCH_DMA_MINALIGN
|
|
|
|
+#define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN
|
|
|
|
+#else
|
|
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
|
|
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
|
|
#endif
|
|
#endif
|
|
|
|
|