ALSA: hda - More relax for pending period handling
authorTakashi Iwai <tiwai@suse.de>
Tue, 3 Aug 2010 12:39:04 +0000 (14:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Aug 2010 12:43:07 +0000 (14:43 +0200)
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>
sound/pci/hda/hda_intel.c

index f8a2f5aa40265f042a95067ef83b2f6bb20c3204..66d420212d9a517aa2958c655784e7fb035bce32 100644 (file)
@@ -1961,7 +1961,7 @@ static void azx_irq_pending_work(struct work_struct *work)
                spin_unlock_irq(&chip->reg_lock);
                if (!pending)
                        return;
-               cond_resched();
+               msleep(1);
        }
 }