]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: timer: Sync timer deletion at closing the system timer
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Feb 2016 13:14:10 +0000 (14:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Feb 2016 23:15:42 +0000 (00:15 +0100)
commit1e849db0606fcf829f1aa3bff14bfcd61b0a5b2d
treed0240d85093b4f77e0b76b3c25396dd01bddb2e2
parent8bba3b01fba2d775fd58ab1e1950162f78defed8
ALSA: timer: Sync timer deletion at closing the system timer

ALSA timer core framework has no sync point at stopping because it's
called inside the spinlock.  Thus we need a sync point at close for
avoiding the stray timer task.  This is simply done by implementing
the close callback just calling del_timer_sync().  (It's harmless to
call it unconditionally, as the core timer itself cares of the already
deleted timer instance.)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c