Only print the apm_cpu_idle message once (rhbz #760341)

This commit is contained in:
Josh Boyer 2011-12-05 16:50:31 -05:00
parent acb2fd5ebe
commit ac24e81de8
2 changed files with 5 additions and 2 deletions

View File

@ -54,7 +54,7 @@ Summary: The Linux kernel
# For non-released -rc kernels, this will be appended after the rcX and
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
#
%global baserelease 4
%global baserelease 5
%global fedora_build %{baserelease}
# base_sublevel is the kernel version we're starting with and patching
@ -2194,6 +2194,9 @@ fi
# and build.
%changelog
* Mon Dec 05 2011 Josh Boyer <jwboyer@redhat.com>
- Only print the apm_cpu_idle message once (rhbz #760341)
* Mon Dec 05 2011 Dave Jones <davej@redhat.com>
- Switch from -Os to -O2

View File

@ -7,7 +7,7 @@ index a46bd38..416dd12 100644
unsigned int bucket;
- WARN_ONCE(1, "deprecated apm_cpu_idle will be deleted in 2012");
+ printk(KERN_INFO "deprecated apm_cpu_idle will be deleted in 2012");
+ printk_once(KERN_INFO "deprecated apm_cpu_idle will be deleted in 2012");
recalc:
if (jiffies_since_last_check > IDLE_CALC_LIMIT) {
use_apm_idle = 0;