]> git.kernelconcepts.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:02 +0000 (14:47 -0800)
commit381a2c22666521dd7cda3ed49f85ba1d5d4325dc
tree91577b68f94f515e2acb426b7eb9145e4f7e5d50
parent68e8c2c1fe160b7d1eab3aff9fa58b0e2b2b7068
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: Greg Kroah-Hartman <gregkh@suse.de>
sound/core/hrtimer.c