diff options
author | David Henningsson <david.henningsson@canonical.com> | 2012-05-04 11:05:55 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-05-09 10:22:06 +0200 |
commit | 32cf4023e689ad5b3a81a749d8cc99d7f184cb99 (patch) | |
tree | 28090820b11f20776b4c12ff6c9fb1cf2eedee93 /ipc/compat_mq.c | |
parent | 619a341b78f17fb86d92e89c04612676cd05e26f (diff) | |
download | op-kernel-dev-32cf4023e689ad5b3a81a749d8cc99d7f184cb99.zip op-kernel-dev-32cf4023e689ad5b3a81a749d8cc99d7f184cb99.tar.gz |
ALSA: HDA: Lessen CPU usage when waiting for chip to respond
When an IRQ for some reason gets lost, we wait up to a second using
udelay, which is CPU intensive. This patch improves the situation by
waiting about 30 ms in the CPU intensive mode, then stepping down to
using msleep(2) instead. In essence, we trade some granularity in
exchange for less CPU consumption when the waiting time is a bit longer.
As a result, PulseAudio should no longer be killed by the kernel
for taking up to much RT-prio CPU time. At least not for *this* reason.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Tested-by: Arun Raghavan <arun.raghavan@collabora.co.uk>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'ipc/compat_mq.c')
0 files changed, 0 insertions, 0 deletions