diff options
| author | Takashi Iwai <tiwai@suse.de> | 2010-08-03 08:39:04 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2010-08-03 08:43:07 -0400 |
| commit | 08af495f22f43eff3b5a347dc10384ebcf356e41 (patch) | |
| tree | a0f271b63723cd6a3ae4af17b36d9047b62ce993 | |
| parent | 92f10b3f5d53f9e35da5285eb8ea4bc88082b71e (diff) | |
ALSA: hda - More relax for pending period handling
Since the pending periods are often bogus and take long time until
actually processed, it often results in a high CPU usage of the hd-audio
workq. Overall it's better to have low CPU consumption by avoiding a
too tight loop rather than the wake-up timing accuracy.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/pci/hda/hda_intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index f8a2f5aa4026..66d420212d9a 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
| @@ -1961,7 +1961,7 @@ static void azx_irq_pending_work(struct work_struct *work) | |||
| 1961 | spin_unlock_irq(&chip->reg_lock); | 1961 | spin_unlock_irq(&chip->reg_lock); |
| 1962 | if (!pending) | 1962 | if (!pending) |
| 1963 | return; | 1963 | return; |
| 1964 | cond_resched(); | 1964 | msleep(1); |
| 1965 | } | 1965 | } |
| 1966 | } | 1966 | } |
| 1967 | 1967 | ||
