|
@@ -106,15 +106,17 @@ struct kmem_cache {
|
|
|
/*
|
|
|
* Kmalloc subsystem.
|
|
|
*/
|
|
|
-#if defined(ARCH_KMALLOC_MINALIGN) && ARCH_KMALLOC_MINALIGN > 8
|
|
|
-#define KMALLOC_MIN_SIZE ARCH_KMALLOC_MINALIGN
|
|
|
+#if defined(ARCH_DMA_MINALIGN) && ARCH_DMA_MINALIGN > 8
|
|
|
+#define KMALLOC_MIN_SIZE ARCH_DMA_MINALIGN
|
|
|
#else
|
|
|
#define KMALLOC_MIN_SIZE 8
|
|
|
#endif
|
|
|
|
|
|
#define KMALLOC_SHIFT_LOW ilog2(KMALLOC_MIN_SIZE)
|
|
|
|
|
|
-#ifndef ARCH_KMALLOC_MINALIGN
|
|
|
+#ifdef ARCH_DMA_MINALIGN
|
|
|
+#define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN
|
|
|
+#else
|
|
|
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
|
|
|
#endif
|
|
|
|