rpms/kernel/F-8 linux-2.6-hwmon-coretemp-add-penryn-cpu.patch, NONE, 1.1 kernel.spec, 1.390, 1.391

Chuck Ebbert (cebbert) fedora-extras-commits at redhat.com
Wed Mar 19 13:58:09 UTC 2008


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18921

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-hwmon-coretemp-add-penryn-cpu.patch 
Log Message:
* Wed Mar 19 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.24.3-45
- Add Penryn CPU support to the hwmon coretemp driver (#438073)


linux-2.6-hwmon-coretemp-add-penryn-cpu.patch:

--- NEW FILE linux-2.6-hwmon-coretemp-add-penryn-cpu.patch ---
From: Rudolf Marek <r.marek at assembler.cz>
Date: Thu, 17 Jan 2008 23:50:04 +0000 (+0100)
Subject: hwmon: (coretemp) Add Penryn CPU to coretemp
X-Git-Tag: v2.6.25-rc3~94^2~2
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=ae770152c801f10a91e5e86597a39b5f9ccf2d0d

hwmon: (coretemp) Add Penryn CPU to coretemp

This patch adds support for family 0x17, which has Penryn Core. It should also
cover the 8 cores Xeons.

Can someone test please? I think it should work.

Signed-off-by: Rudolf Marek <r.marek at assembler.cz>
Acked-by: Jean Delvare <khali at linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
---

diff --git a/Documentation/hwmon/coretemp b/Documentation/hwmon/coretemp
index 7fb7441..dbbe6c7 100644
--- a/Documentation/hwmon/coretemp
+++ b/Documentation/hwmon/coretemp
@@ -4,9 +4,10 @@ Kernel driver coretemp
 Supported chips:
   * All Intel Core family
     Prefix: 'coretemp'
-    CPUID: family 0x6, models 0xe, 0xf, 0x16
+    CPUID: family 0x6, models 0xe, 0xf, 0x16, 0x17
     Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual
                Volume 3A: System Programming Guide
+               http://softwarecommunity.intel.com/Wiki/Mobility/720.htm
 
 Author: Rudolf Marek
 
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 1f34ad8..70239ac 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -413,10 +413,10 @@ static int __init coretemp_init(void)
 	for_each_online_cpu(i) {
 		struct cpuinfo_x86 *c = &cpu_data(i);
 
-		/* check if family 6, models e, f, 16 */
+		/* check if family 6, models 0xe, 0xf, 0x16, 0x17 */
 		if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
 		    !((c->x86_model == 0xe) || (c->x86_model == 0xf) ||
-			(c->x86_model == 0x16))) {
+			(c->x86_model == 0x16) || (c->x86_model == 0x17))) {
 
 			/* supported CPU not found, but report the unknown
 			   family 6 CPU */


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-8/kernel.spec,v
retrieving revision 1.390
retrieving revision 1.391
diff -u -r1.390 -r1.391
--- kernel.spec	18 Mar 2008 23:43:36 -0000	1.390
+++ kernel.spec	19 Mar 2008 13:57:07 -0000	1.391
@@ -691,6 +691,7 @@
 Patch1310: linux-2.6-usb-serial-option-add-dell-modem-1.patch
 Patch1311: linux-2.6-usb-serial-option-add-dell-modem-2.patch
 Patch1320: linux-2.6-isdn-hisax-fix-request_irq-oops.patch
+Patch1330: linux-2.6-hwmon-coretemp-add-penryn-cpu.patch
 
 Patch1400: linux-2.6-smarter-relatime.patch
 Patch1504: linux-2.6-xfs-optimize-away-realtime-tests.patch
@@ -1289,6 +1290,11 @@
 # fix request_irq oops
 ApplyPatch linux-2.6-isdn-hisax-fix-request_irq-oops.patch
 
+# hwmon
+# add penryn cpu to coretemp
+ApplyPatch linux-2.6-hwmon-coretemp-add-penryn-cpu.patch
+
+
 # implement smarter atime updates support.
 ApplyPatch linux-2.6-smarter-relatime.patch
 
@@ -1923,6 +1929,9 @@
 
 
 %changelog
+* Wed Mar 19 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.24.3-45
+- Add Penryn CPU support to the hwmon coretemp driver (#438073)
+
 * Tue Mar 18 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.24.3-44
 - Fix spurious ACPI thermal trips (#437466)
 




More information about the fedora-extras-commits mailing list