Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9b1fffddc80949fb4aa93fdcc57544bc2108ced3
Commit:     9b1fffddc80949fb4aa93fdcc57544bc2108ced3
Parent:     27da183402ac5ca7d5a4c4704c4a405cd1009c43
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 16 15:20:28 2007 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:26 2008 +0100

    [ALSA] snd hda suspend latency: shorten codec read
    
    not sleeping for every codec read/write but doing a short udelay and
    a conditional reschedule has cut suspend+resume latency by about 1
    second on my T60.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/hda/hda_intel.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 38c5916..41edf85 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -561,7 +561,8 @@ static unsigned int azx_rirb_get_response(struct hda_codec 
*codec)
                }
                if (!chip->rirb.cmds)
                        return chip->rirb.res; /* the last value */
-               schedule_timeout_uninterruptible(1);
+               udelay(10);
+               cond_resched();
        } while (time_after_eq(timeout, jiffies));
 
        if (chip->msi) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to