summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-05-05 19:15:15 +0000
committerdelphij <delphij@FreeBSD.org>2011-05-05 19:15:15 +0000
commit49903bb618f817a051ddafc206e4c4a51ebfdb31 (patch)
treee676a1c2230af0aab4e0ac37c2b882fec9f9b6b2
parentb150dc5f670a6a3b652f8365ca4ac4e1d2413693 (diff)
downloadFreeBSD-src-49903bb618f817a051ddafc206e4c4a51ebfdb31.zip
FreeBSD-src-49903bb618f817a051ddafc206e4c4a51ebfdb31.tar.gz
Detect and set Atom's Tj(max) to 90 if it's not the 45nm D400/D500/N400
series. MFC after: 2 weeks
-rw-r--r--sys/dev/coretemp/coretemp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/coretemp/coretemp.c b/sys/dev/coretemp/coretemp.c
index 777a591..411b9ee 100644
--- a/sys/dev/coretemp/coretemp.c
+++ b/sys/dev/coretemp/coretemp.c
@@ -197,6 +197,15 @@ coretemp_attach(device_t dev)
default: /* Unknown stepping */
break;
}
+ } else if (cpu_model == 0x1c) {
+ switch (cpu_stepping) {
+ case 0xa: /* 45nm Atom D400, N400 and D500 series */
+ sc->sc_tjmax = 100;
+ break;
+ default:
+ sc->sc_tjmax = 90;
+ break;
+ }
} else {
/*
* Attempt to get Tj(max) from MSR IA32_TEMPERATURE_TARGET.
OpenPOWER on IntegriCloud