Skip to content
Commit a9cc473f authored by Javier Martinez Canillas's avatar Javier Martinez Canillas
Browse files

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: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
parent 31e3bcd1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment