* [PATCH] cpufreq annoying warning fix
@ 2005-05-02 6:25 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2005-05-02 6:25 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel list, Linus Torvalds
Hi !
The cpufreq core patch I sent earlier got only half-applied. I added a
flag to let the low level driver disable an annoying warning on
suspend/resume that is normal on ppc, but the "resume" part of it wasn't
applied. This patch just adds back that missing bit. The original patch
also reworked the resume() function to avoid nesting too many if ()
statements along the way I did the suspend() one, but I didn't include
that in the patch below.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Index: linux-work/drivers/cpufreq/cpufreq.c
===================================================================
--- linux-work.orig/drivers/cpufreq/cpufreq.c 2005-05-02 10:48:09.000000000 +1000
+++ linux-work/drivers/cpufreq/cpufreq.c 2005-05-02 16:21:23.000000000 +1000
@@ -1003,9 +1003,10 @@
if (unlikely(cur_freq != cpu_policy->cur)) {
struct cpufreq_freqs freqs;
- printk(KERN_WARNING "Warning: CPU frequency is %u, "
- "cpufreq assumed %u kHz.\n",
- cur_freq, cpu_policy->cur);
+ if (!(cpufreq_driver->flags & CPUFREQ_PM_NO_WARN))
+ printk(KERN_WARNING "Warning: CPU frequency"
+ "is %u, cpufreq assumed %u kHz.\n",
+ cur_freq, cpu_policy->cur);
freqs.cpu = cpu;
freqs.old = cpu_policy->cur;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-02 6:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-02 6:25 [PATCH] cpufreq annoying warning fix Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®