Skip to content

Commit

Permalink
drivers/hwmon/coretemp.c: enable the Intel Atom
Browse files Browse the repository at this point in the history
Enable 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.

Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Michael Riepe authored and Linus Torvalds committed Sep 22, 2009
1 parent 42e41c5 commit 0bf41d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hwmon/coretemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static int __devinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id, struct device *
}
}

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

err = rdmsr_safe_on_cpu(id, 0xee, &eax, &edx);
if (err) {
Expand Down Expand Up @@ -417,7 +417,7 @@ static int __init coretemp_init(void)
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 */
Expand Down

0 comments on commit 0bf41d9

Please sign in to comment.