snd hda suspend latency goes down a second via the patch below. Ingo -------------> Subject: snd hda suspend latency: shorten codec read From: Ingo Molnar <[email protected]> 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]> --- sound/pci/hda/hda_intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux/sound/pci/hda/hda_intel.c =================================================================== --- linux.orig/sound/pci/hda/hda_intel.c +++ linux/sound/pci/hda/hda_intel.c @@ -555,7 +555,8 @@ static unsigned int azx_rirb_get_respons } 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 linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch] snd hda suspend latency: shorten codec read
- From: Takashi Iwai <[email protected]>
- Re: [patch] snd hda suspend latency: shorten codec read
- From: "Rafael J. Wysocki" <[email protected]>
- Re: [patch] snd hda suspend latency: shorten codec read
- References:
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Pavel Machek <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Mark Lord <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Ingo Molnar <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Ingo Molnar <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Mark Lord <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Ingo Molnar <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Ingo Molnar <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Ingo Molnar <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Ingo Molnar <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- From: Ingo Molnar <[email protected]>
- Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- Prev by Date: Re: Kconfig: ARCH=x86
- Next by Date: RE: 2.6.23.1 - sata_mv (7042) hang with large file operations
- Previous by thread: Re: [BUG] Strange 1-second pauses during Resume-from-RAM
- Next by thread: Re: [patch] snd hda suspend latency: shorten codec read
- Index(es):