Date: Thu, 5 May 2011 19:15:15 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r221509 - head/sys/dev/coretemp Message-ID: <201105051915.p45JFF12012402@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Thu May 5 19:15:15 2011 New Revision: 221509 URL: http://svn.freebsd.org/changeset/base/221509 Log: Detect and set Atom's Tj(max) to 90 if it's not the 45nm D400/D500/N400 series. MFC after: 2 weeks Modified: head/sys/dev/coretemp/coretemp.c Modified: head/sys/dev/coretemp/coretemp.c ============================================================================== --- head/sys/dev/coretemp/coretemp.c Thu May 5 18:56:48 2011 (r221508) +++ head/sys/dev/coretemp/coretemp.c Thu May 5 19:15:15 2011 (r221509) @@ -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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105051915.p45JFF12012402>