-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Javier Martinez Canillas
committed
Apr 25, 2013
1 parent
31e3bcd
commit a9cc473
Showing
1 changed file
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters