ALSA/dummy: Replace tasklet with softirq hrtimer
authorThomas Gleixner <tglx@linutronix.de>
Thu, 21 Dec 2017 10:42:03 +0000 (11:42 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Jan 2018 08:51:22 +0000 (09:51 +0100)
commitb03bbbe08ff04d80136b6aac152954ef308a4909
tree00eccdb20106c5f0f4fcf4cb26cdb5ebbc51eb5c
parent42f42da41b54c191ae6a775e84a86c100d66c5e8
ALSA/dummy: Replace tasklet with softirq hrtimer

The tasklet is used to defer the execution of snd_pcm_period_elapsed() to
the softirq context. Using the HRTIMER_MODE_SOFT mode invokes the timer
callback in softirq context as well which renders the tasklet useless.

[o-takashi: avoid stall due to a call of hrtimer_cancel() on a callback of hrtimer]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: alsa-devel@alsa-project.org
Cc: keescook@chromium.org
Link: http://lkml.kernel.org/r/20171221104205.7269-35-anna-maria@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
sound/drivers/dummy.c