summaryrefslogtreecommitdiffstats
path: root/src/core/malloc.c
diff options
context:
space:
mode:
authorMichael Brown2006-04-25 12:41:49 +0200
committerMichael Brown2006-04-25 12:41:49 +0200
commit95f8a429307bb0868d056e9ce8c1e2b9d59d2700 (patch)
tree983e3c601b2e91d4234cb0d908b838b039c6d605 /src/core/malloc.c
parentNow passes trivial tests. free_memblock() needs neatening up. (diff)
downloadipxe-95f8a429307bb0868d056e9ce8c1e2b9d59d2700.tar.gz
ipxe-95f8a429307bb0868d056e9ce8c1e2b9d59d2700.tar.xz
ipxe-95f8a429307bb0868d056e9ce8c1e2b9d59d2700.zip
Removed incorrect comment; malloc() is inefficient only when the
alignment and size are both powers of two, and there's no way to specify an alignment through the malloc() interface anyway.
Diffstat (limited to 'src/core/malloc.c')
-rw-r--r--src/core/malloc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/malloc.c b/src/core/malloc.c
index f6426cb4..d23a4eeb 100644
--- a/src/core/malloc.c
+++ b/src/core/malloc.c
@@ -195,11 +195,6 @@ void free_memblock ( void *ptr, size_t size ) {
*
* Allocates memory with no particular alignment requirement. @c ptr
* will be aligned to at least a multiple of sizeof(void*).
- *
- * Note that malloc() is very inefficient for allocating blocks where
- * the size is a power of two; if you have many of these
- * (e.g. descriptor rings, data buffers) you should use malloc_dma()
- * instead.
*/
void * malloc ( size_t size ) {
size_t total_size;