summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2005-05-02 16:25:10 +1000
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 08:15:22 -0700
commitac09f698f1cda91e890fb75f4cb38253d60ff017 (patch)
treef71a88464e5b5cb3f5246367bcc8ea0890f5fb0d /drivers/cpufreq/cpufreq.c
parente521dca64e0f82d844928c5ee88d82fdced50cbe (diff)
[PATCH] cpufreq annoying warning fix
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 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> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 4fc0cb79f18f..8e561313d094 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1003,9 +1003,10 @@ static int cpufreq_resume(struct sys_device * sysdev)
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;
d class='ls-size'>21280logstatsplain -rw-r--r--cp437.uni4391logstatsplain -rw-r--r--cs5535_gpio.c5764logstatsplain -rw-r--r--cyclades.c178881logstatsplain -rw-r--r--decserial.c1958logstatsplain -rw-r--r--defkeymap.c_shipped11141logstatsplain -rw-r--r--defkeymap.map12183logstatsplain -rw-r--r--digi.h2727logstatsplain -rw-r--r--digi1.h3665logstatsplain -rw-r--r--digiFep1.h1928logstatsplain -rw-r--r--digiPCI.h1382logstatsplain d---------drm4044logstatsplain -rw-r--r--ds1286.c14348logstatsplain -rw-r--r--ds1302.c7434logstatsplain -rw-r--r--ds1620.c8399logstatsplain -rw-r--r--dsp56k.c14064logstatsplain -rw-r--r--dtlk.c16646logstatsplain -rw-r--r--ec3104_keyb.c9292logstatsplain -rw-r--r--efirtc.c9747logstatsplain -rw-r--r--epca.c101452logstatsplain -rw-r--r--epca.h3971logstatsplain -rw-r--r--epcaconfig.h119logstatsplain -rw-r--r--esp.c69630logstatsplain d---------ftape255logstatsplain -rw-r--r--generic_nvram.c3099logstatsplain -rw-r--r--generic_serial.c24422logstatsplain -rw-r--r--genrtc.c12933logstatsplain -rw-r--r--hangcheck-timer.c6236logstatsplain -rw-r--r--hpet.c22740logstatsplain -rw-r--r--hvc_console.c21048logstatsplain -rw-r--r--hvc_console.h2286logstatsplain -rw-r--r--hvc_rtas.c3994logstatsplain -rw-r--r--hvc_vio.c4033logstatsplain -rw-r--r--hvcs.c48387logstatsplain -rw-r--r--hvsi.c32816logstatsplain -rw-r--r--hw_random.c15495logstatsplain -rw-r--r--i8k.c12140logstatsplain d---------ip2613logstatsplain -rw-r--r--ip27-rtc.c7727logstatsplain d---------ipmi449logstatsplain -rw-r--r--isicom.c48895logstatsplain -rw-r--r--istallion.c138968logstatsplain -rw-r--r--ite_gpio.c10055logstatsplain -rw-r--r--keyboard.c33236logstatsplain -rw-r--r--lcd.c13450logstatsplain -rw-r--r--lcd.h4145logstatsplain -rw-r--r--lp.c25858logstatsplain -rw-r--r--mbcs.c20159logstatsplain -rw-r--r--mbcs.h13728logstatsplain -rw-r--r--mem.c21401logstatsplain -rw-r--r--misc.c7142logstatsplain -rw-r--r--mmtimer.c18910logstatsplain -rw-r--r--moxa.c85619logstatsplain d---------mwave396logstatsplain -rw-r--r--mxser.c85293logstatsplain -rw-r--r--mxser.h14734logstatsplain -rw-r--r--n_hdlc.c27329logstatsplain -rw-r--r--n_r3964.c35989logstatsplain -rw-r--r--n_tty.c39307logstatsplain -rw-r--r--nvram.c22225logstatsplain -rw-r--r--nwbutton.c8144logstatsplain -rw-r--r--nwbutton.h1177logstatsplain -rw-r--r--nwflash.c14090logstatsplain d---------pcmcia229logstatsplain -rw-r--r--ppdev.c19919logstatsplain -rw-r--r--pty.c11947logstatsplain -rw-r--r--qtronix.c13584logstatsplain -rw-r--r--qtronixmap.c_shipped10910logstatsplain -rw-r--r--qtronixmap.map9346logstatsplain -rw-r--r--random.c49363logstatsplain -rw-r--r--raw.c8111logstatsplain