All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy_d_dunlap@linux.intel.com>
To: perex@suse.cz, akpm <akpm@osdl.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] sound/hda: rate-limit timeout message
Date: Mon, 31 Oct 2005 13:20:02 -0800	[thread overview]
Message-ID: <20051031132002.14b7aedb.randy_d_dunlap@linux.intel.com> (raw)

From: Randy Dunlap <randy_d_dunlap@linux.intel.com>

Rate-limit the azx_get_response timeout message.
A continuous 2 per second is too much.

Signed-off-by: Randy Dunlap <randy_d_dunlap@linux.intel.com>
---

 sound/pci/hda/hda_intel.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -Naurp linux-2614-work/sound/pci/hda/hda_intel.c~hda_rate_limit linux-2614-work/sound/pci/hda/hda_intel.c
--- linux-2614-work/sound/pci/hda/hda_intel.c~hda_rate_limit	2005-10-27 17:02:08.000000000 -0700
+++ linux-2614-work/sound/pci/hda/hda_intel.c	2005-10-31 13:11:33.000000000 -0800
@@ -37,6 +37,7 @@
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
+#include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/init.h>
@@ -508,7 +509,9 @@ static unsigned int azx_get_response(str
 
 	while (chip->rirb.cmds) {
 		if (! --timeout) {
-			snd_printk(KERN_ERR "azx_get_response timeout\n");
+			if (printk_ratelimit())
+				snd_printk(KERN_ERR
+					"azx_get_response timeout\n");
 			chip->rirb.rp = azx_readb(chip, RIRBWP);
 			chip->rirb.cmds = 0;
 			return -1;


---

                 reply	other threads:[~2005-10-31 21:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051031132002.14b7aedb.randy_d_dunlap@linux.intel.com \
    --to=randy_d_dunlap@linux.intel.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.