Gentoo Archives: gentoo-commits

From: "Daniel Drake (dsd)" <dsd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] linux-patches r1277 - genpatches-2.6/trunk/2.6.24
Date: Sat, 29 Mar 2008 17:58:29
Message-Id: E1JffJy-00061d-Jy@stork.gentoo.org
1 Author: dsd
2 Date: 2008-03-29 17:58:25 +0000 (Sat, 29 Mar 2008)
3 New Revision: 1277
4
5 Added:
6 genpatches-2.6/trunk/2.6.24/4410_coretemp-penryn.patch
7 Modified:
8 genpatches-2.6/trunk/2.6.24/0000_README
9 Log:
10 Support temperature monitoring of new Intel CPUs
11
12 Modified: genpatches-2.6/trunk/2.6.24/0000_README
13 ===================================================================
14 --- genpatches-2.6/trunk/2.6.24/0000_README 2008-03-28 19:19:06 UTC (rev 1276)
15 +++ genpatches-2.6/trunk/2.6.24/0000_README 2008-03-29 17:58:25 UTC (rev 1277)
16 @@ -134,3 +134,8 @@
17 Patch: 4405_alpha-sysctl-uac.patch
18 From: Tavis Ormandy <taviso@g.o>
19 Desc: enable control of the unaligned access control policy from sysctl
20 +
21 +Patch: 4410_coretemp-penryn.patch
22 +From: Jan Taimr
23 +Desc: Support temperature monitoring of new Intel CPUs
24 +
25
26 Added: genpatches-2.6/trunk/2.6.24/4410_coretemp-penryn.patch
27 ===================================================================
28 --- genpatches-2.6/trunk/2.6.24/4410_coretemp-penryn.patch (rev 0)
29 +++ genpatches-2.6/trunk/2.6.24/4410_coretemp-penryn.patch 2008-03-29 17:58:25 UTC (rev 1277)
30 @@ -0,0 +1,51 @@
31 +From: Rudolf Marek <r.marek@×××××××××.cz>
32 +Date: Thu, 17 Jan 2008 23:50:04 +0000 (+0100)
33 +Subject: hwmon: (coretemp) Add Penryn CPU to coretemp
34 +X-Git-Tag: v2.6.25-rc3~94^2~2
35 +X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=ae770152c801f10a91e5e86597a39b5f9ccf2d0d
36 +
37 +hwmon: (coretemp) Add Penryn CPU to coretemp
38 +
39 +This patch adds support for family 0x17, which has Penryn Core. It should also
40 +cover the 8 cores Xeons.
41 +
42 +Can someone test please? I think it should work.
43 +
44 +Signed-off-by: Rudolf Marek <r.marek@×××××××××.cz>
45 +Acked-by: Jean Delvare <khali@××××××××.org>
46 +Signed-off-by: Mark M. Hoffman <mhoffman@×××××××××.com>
47 +---
48 +
49 +diff --git a/Documentation/hwmon/coretemp b/Documentation/hwmon/coretemp
50 +index 7fb7441..dbbe6c7 100644
51 +--- a/Documentation/hwmon/coretemp
52 ++++ b/Documentation/hwmon/coretemp
53 +@@ -4,9 +4,10 @@ Kernel driver coretemp
54 + Supported chips:
55 + * All Intel Core family
56 + Prefix: 'coretemp'
57 +- CPUID: family 0x6, models 0xe, 0xf, 0x16
58 ++ CPUID: family 0x6, models 0xe, 0xf, 0x16, 0x17
59 + Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual
60 + Volume 3A: System Programming Guide
61 ++ http://softwarecommunity.intel.com/Wiki/Mobility/720.htm
62 +
63 + Author: Rudolf Marek
64 +
65 +diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
66 +index 1f34ad8..70239ac 100644
67 +--- a/drivers/hwmon/coretemp.c
68 ++++ b/drivers/hwmon/coretemp.c
69 +@@ -413,10 +413,10 @@ static int __init coretemp_init(void)
70 + for_each_online_cpu(i) {
71 + struct cpuinfo_x86 *c = &cpu_data(i);
72 +
73 +- /* check if family 6, models e, f, 16 */
74 ++ /* check if family 6, models 0xe, 0xf, 0x16, 0x17 */
75 + if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
76 + !((c->x86_model == 0xe) || (c->x86_model == 0xf) ||
77 +- (c->x86_model == 0x16))) {
78 ++ (c->x86_model == 0x16) || (c->x86_model == 0x17))) {
79 +
80 + /* supported CPU not found, but report the unknown
81 + family 6 CPU */
82
83 --
84 gentoo-commits@l.g.o mailing list