public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: Remove KERN_ERR output if nForce2 chipset not found
@ 2009-03-06 20:55 Roland Dreier
  2009-03-06 21:06 ` Jarod Wilson
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Dreier @ 2009-03-06 20:55 UTC (permalink / raw)
  To: davej, cpufreq, linux-kernel

Distribution kernels are building cpufreq drivers into the kernel to get
faster boot; if the nForce2 driver is built in, then on systems that are
not supported by the driver (ie nearly all current systems), the message

    cpufreq: No nForce2 chipset.

is printed at the KERN_ERR level, which means it goes to the console
even if quiet boot is turned on.

The best way to handle this is just to delete the message, since the
likelihood of it ever being of any use to anyone is very low, and other
cpufreq drivers don't print anything if no matching hardware is found.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
---
 arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c b/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c
index 965ea52..055fca3 100644
--- a/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c
+++ b/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c
@@ -419,10 +419,8 @@ static int __init nforce2_init(void)
 	/* TODO: do we need to detect the processor? */
 
 	/* detect chipset */
-	if (nforce2_detect_chipset()) {
-		printk(KERN_ERR "cpufreq: No nForce2 chipset.\n");
+	if (nforce2_detect_chipset())
 		return -ENODEV;
-	}
 
 	return cpufreq_register_driver(&nforce2_driver);
 }

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] cpufreq: Remove KERN_ERR output if nForce2 chipset not found
  2009-03-06 20:55 [PATCH] cpufreq: Remove KERN_ERR output if nForce2 chipset not found Roland Dreier
@ 2009-03-06 21:06 ` Jarod Wilson
  2009-03-06 21:51   ` Roland Dreier
  0 siblings, 1 reply; 4+ messages in thread
From: Jarod Wilson @ 2009-03-06 21:06 UTC (permalink / raw)
  To: Roland Dreier; +Cc: davej, cpufreq, linux-kernel

On Friday 06 March 2009 15:55:56 Roland Dreier wrote:
> Distribution kernels are building cpufreq drivers into the kernel to get
> faster boot; if the nForce2 driver is built in, then on systems that are
> not supported by the driver (ie nearly all current systems), the message
> 
>     cpufreq: No nForce2 chipset.
> 
> is printed at the KERN_ERR level, which means it goes to the console
> even if quiet boot is turned on.
> 
> The best way to handle this is just to delete the message, since the
> likelihood of it ever being of any use to anyone is very low, and other
> cpufreq drivers don't print anything if no matching hardware is found.
> 
> Signed-off-by: Roland Dreier <rolandd@cisco.com>

Nb: Matthew Garrett submitted a similar-but-different patch a week or
two ago on the cpufreq list that demoted the message to KERN_INFO.

-- 
Jarod Wilson
jarod@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cpufreq: Remove KERN_ERR output if nForce2 chipset not found
  2009-03-06 21:06 ` Jarod Wilson
@ 2009-03-06 21:51   ` Roland Dreier
  2009-03-06 22:01     ` Jarod Wilson
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Dreier @ 2009-03-06 21:51 UTC (permalink / raw)
  To: Jarod Wilson; +Cc: davej, cpufreq, linux-kernel

 > Nb: Matthew Garrett submitted a similar-but-different patch a week or
 > two ago on the cpufreq list that demoted the message to KERN_INFO.

Sorry, missed that.  I considered the demotion to KERN_INFO but a) no
other cpufreq drivers seem to print anything if the device isn't found
and b) I can't imagine a realistic case of when the message would *ever*
be useful.

 - R.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cpufreq: Remove KERN_ERR output if nForce2 chipset not found
  2009-03-06 21:51   ` Roland Dreier
@ 2009-03-06 22:01     ` Jarod Wilson
  0 siblings, 0 replies; 4+ messages in thread
From: Jarod Wilson @ 2009-03-06 22:01 UTC (permalink / raw)
  To: Roland Dreier; +Cc: davej, cpufreq, linux-kernel

On Friday 06 March 2009 16:51:49 Roland Dreier wrote:
>  > Nb: Matthew Garrett submitted a similar-but-different patch a week or
>  > two ago on the cpufreq list that demoted the message to KERN_INFO.
> 
> Sorry, missed that.  I considered the demotion to KERN_INFO but a) no
> other cpufreq drivers seem to print anything if the device isn't found
> and b) I can't imagine a realistic case of when the message would *ever*
> be useful.

Good points. I wasn't favoring one or the other 'til now, but simply
returning -ENODEV does indeed seem to be more in line with what other
freq scaling drivers do.

-- 
Jarod Wilson
jarod@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-06 22:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06 20:55 [PATCH] cpufreq: Remove KERN_ERR output if nForce2 chipset not found Roland Dreier
2009-03-06 21:06 ` Jarod Wilson
2009-03-06 21:51   ` Roland Dreier
2009-03-06 22:01     ` Jarod Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox