HomeFreeBSD

sound: Retire snd_mtx* wrappers

Description

sound: Retire snd_mtx* wrappers

Do not create mutexes with snd_mtxcreate(). It doesn't provide any
value, plus it first allocates the mutex with malloc(9). Allocate
mutexes in the stack and use mtx_* functions directly instead of the
snd_mtx* wrappers.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D53855

Details

Provenance
christosAuthored on Fri, Nov 21, 4:14 PM
Reviewer
kib
Differential Revision
D53855: sound: Retire snd_mtx* wrappers
Parents
rGe254ef87a30b: sound: Merge chn_intr() with chn_intr_locked()
Branches
Unknown
Tags
Unknown