alloc: don't initialise rballoc() memory

rballoc() doesn't guarantee zero-initialised memory, besides it's
often enough called at run-time and for relatively large buffers, so
performance losses aren't negligible. Remove the bzero() call.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-12-16 11:55:34 +01:00 committed by Liam Girdwood
parent ca64ccf7a9
commit 26577b21de
1 changed files with 0 additions and 3 deletions

View File

@ -950,9 +950,6 @@ void *rballoc_align(uint32_t flags, uint32_t caps, size_t bytes,
ptr = _balloc_unlocked(flags, caps, bytes, alignment);
if (ptr)
bzero(ptr, bytes);
spin_unlock_irq(&memmap->lock, lock_flags);
DEBUG_TRACE_PTR(ptr, bytes, SOF_MEM_ZONE_BUFFER, caps, flags);