]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: hrtimer: handle delayed timer interrupts
authorClemens Ladisch <clemens@ladisch.de>
Thu, 10 Feb 2011 15:15:44 +0000 (16:15 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:27 +0000 (12:46 -0400)
commitec79ce996fbe986ba6e6a18e489cd726fc201cf3
tree045fb4180293ff8ec458d8d1f173f26aede6e4f1
parent35a6e6bd6ca56f583b7399a079005e3c918a1ba1
ALSA: hrtimer: handle delayed timer interrupts

commit b1d4f7f4bdcf9915c41ff8cfc4425c84dabb1fde upstream.

If a timer interrupt was delayed too much, hrtimer_forward_now() will
forward the timer expiry more than once.  When this happens, the
additional number of elapsed ALSA timer ticks must be passed to
snd_timer_interrupt() to prevent the ALSA timer from falling behind.

This mostly fixes MIDI slowdown problems on highly-loaded systems with
badly behaved interrupt handlers.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Reported-and-tested-by: Arthur Marsh <arthur.marsh@internode.on.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
sound/core/hrtimer.c