summaryrefslogtreecommitdiff
path: root/include/memalign.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/memalign.h')
-rw-r--r--include/memalign.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/include/memalign.h b/include/memalign.h
index 24d9da7..2f8a02b 100644
--- a/include/memalign.h
+++ b/include/memalign.h
@@ -93,30 +93,6 @@
#define DEFINE_CACHE_ALIGN_BUFFER(type, name, size) \
DEFINE_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN)
-/**
- * malloc_cache_aligned() - allocate a memory region aligned to cache line size
- *
- * This allocates memory at a cache-line boundary. The amount allocated may
- * be larger than requested as it is rounded up to the nearest multiple of the
- * cache-line size. This ensured that subsequent cache operations on this
- * memory (flush, invalidate) will not affect subsequently allocated regions.
- *
- * @size: Minimum number of bytes to allocate
- *
- * @return pointer to new memory region, or NULL if there is no more memory
- * available.
- */
-
-/* set ARCH_DMA_MINALIGN to 64, good for all architectures */
-#ifdef ARCH_DMA_MINALIGN
-#undef ARCH_DMA_MINALIGN
-#endif
-#define ARCH_DMA_MINALIGN 64
-
-static inline void *malloc_cache_aligned(size_t size)
-{
- return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN));
-}
#endif
#endif /* __ALIGNMEM_H */