ALSA: pcm: Hide local_irq_disable/enable() and local_irqsave/restore()
authorAnna-Maria Gleixner <anna-maria@linutronix.de>
Fri, 4 May 2018 15:28:10 +0000 (17:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 May 2018 16:57:13 +0000 (18:57 +0200)
commit10aa7cad37d330dbff6a285af56dc4a7153a8f00
treed5a186d4ecfc81bf83805ac3a9102db83fe8b0ed
parent9ea19e7e7613c0dac114bcbb5adc7f1b08eec615
ALSA: pcm: Hide local_irq_disable/enable() and local_irqsave/restore()

The snd_pcm_stream_lock_irq*() functions decouple disabling interrupts
from the actual locking process. This does not work as expected if the
locking primitives are replaced like on preempt-rt.

Provide one function for locking which uses correct locking primitives.

Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c