rpms/kernel/devel cpufreq-add-atom-to-p4-clockmod.patch, NONE, 1.1 kernel.spec, 1.1393, 1.1394

Jarod Wilson jwilson at fedoraproject.org
Fri Mar 6 20:24:57 UTC 2009


Author: jwilson

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28679

Modified Files:
	kernel.spec 
Added Files:
	cpufreq-add-atom-to-p4-clockmod.patch 
Log Message:
* Fri Mar 06 2009 Jarod Wilson <jarod at redhat.com>
- add atom to p4-clockmod for thermal mgmt benefits for the atom
  procs that don't do freq scaling (lookin' at you, atom 330)


cpufreq-add-atom-to-p4-clockmod.patch:

--- NEW FILE cpufreq-add-atom-to-p4-clockmod.patch ---
cpufreq: add atom family to p4-clockmod

Some atom procs don't do freq scaling (such as the atom 330 on my own
littlefalls2 board). By adding the atom family here, we at least get
the benefit of passive cooling in a thermal emergency. Not sure how
to see that its actually helping any, but the driver does bind and
claim its functioning on my atom 330.

Signed-off-by: Jarod Wilson <jarod at redhat.com>

---
 arch/x86/kernel/cpu/cpufreq/p4-clockmod.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c b/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
index b585e04..b0c02a1 100644
--- a/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
+++ b/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
@@ -161,6 +161,7 @@ static unsigned int cpufreq_p4_get_frequency(struct cpuinfo_x86 *c)
 		case 0x0E: /* Core */
 		case 0x0F: /* Core Duo */
 		case 0x16: /* Celeron Core */
+		case 0x1C: /* Atom */
 			p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
 			return speedstep_get_processor_frequency(SPEEDSTEP_PROCESSOR_PCORE);
 		case 0x0D: /* Pentium M (Dothan) */


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.1393
retrieving revision 1.1394
diff -u -r1.1393 -r1.1394
--- kernel.spec	6 Mar 2009 14:50:02 -0000	1.1393
+++ kernel.spec	6 Mar 2009 20:24:27 -0000	1.1394
@@ -684,6 +684,8 @@
 
 Patch9001: revert-fix-modules_install-via-nfs.patch
 
+Patch9002: cpufreq-add-atom-to-p4-clockmod.patch
+
 %endif
 
 BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
@@ -1223,6 +1225,8 @@
 
 ApplyPatch linux-2.6.28-lockd-svc-register.patch
 
+ApplyPatch cpufreq-add-atom-to-p4-clockmod.patch
+
 # END OF PATCH APPLICATIONS
 
 %endif
@@ -1807,6 +1811,10 @@
 
 %changelog
 * Fri Mar 06 2009 Jarod Wilson <jarod at redhat.com>
+- add atom to p4-clockmod for thermal mgmt benefits for the atom
+  procs that don't do freq scaling (lookin' at you, atom 330)
+
+* Fri Mar 06 2009 Jarod Wilson <jarod at redhat.com>
 - kernel-devel also needs include/crypto headers
 
 * Fri Mar 06 2009 Mauro Carvalho Chehab <mchehab at redhat.com>




More information about the fedora-extras-commits mailing list