lkml.org 
[lkml]   [2009]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Enable coretemp driver on Intel Atom
Hi!

This small patch enables the coretemp driver on an Intel Atom. I'm not
sure if the readings are correct, however - on my 330, the driver
reports values between 27 and 41 °C (with core1 being about 8°C hotter
than core0, given the same load). Maybe the maximum temperature of 100
°C is wrong for Atom CPUs.

--
Michael "Tired" Riepe <michael.riepe@googlemail.com>
X-Tired: Each morning I get up I die a little
Signed-off-by: Michael Riepe <michael.riepe@googlemail.com>

Index: drivers/hwmon/coretemp.c
===================================================================
RCS file: /var/cvs/sys/kernel/linux-2.6/drivers/hwmon/coretemp.c,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 coretemp.c
--- drivers/hwmon/coretemp.c 11 Jan 2009 21:29:23 -0000 1.1.1.5
+++ drivers/hwmon/coretemp.c 16 Apr 2009 23:02:40 -0000
@@ -185,7 +185,7 @@
}
}

- if (ismobile) {
+ if (ismobile || c->x86_model == 0x1c) {

err = rdmsr_safe_on_cpu(id, 0xee, &eax, &edx);
if (err) {
@@ -417,7 +417,7 @@
if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
!((c->x86_model == 0xe) || (c->x86_model == 0xf) ||
(c->x86_model == 0x16) || (c->x86_model == 0x17) ||
- (c->x86_model == 0x1A))) {
+ (c->x86_model == 0x1A) || (c->x86_model == 0x1c))) {

/* supported CPU not found, but report the unknown
family 6 CPU */
\
 
 \ /
  Last update: 2009-04-17 01:49    [W:0.046 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site