ALSA: bcm2835: use a completion instead of a semaphore for sync
The kernel completion interface is a simple synchronization
mechanism that is preferable over semaphores to signal the
occurence of an event.
Semaphores are optimized for the non-contention case since
in most situations they will be available. But the wait for
completion is the opposite case since the code calling down
will wait on most cases.
So, is better to use the completion mechanism that has been
developed for this exact use case instead of semaphores.
Signed-off-by:
Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Loading
Please register or sign in to comment