public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Fwd: how to add support in coretemp.c for Q9450 processor]
@ 2008-08-12  7:29 Eric Benton
  0 siblings, 0 replies; only message in thread
From: Eric Benton @ 2008-08-12  7:29 UTC (permalink / raw)
  To: linux-kernel


Hi,
To add coretemp (thermal monitoring) support for the Intel Q9450 
processor add the code below. i have tested this on several kernels 
including 2.6.26 and it works fine.  the code addition is 
*||(c->x86_model == 0x17) in the if statement*
Thanks
Eric

*in:*
drivers/hwmon/coretemp.c
*in function:*
static int __init coretemp_init(void)

*change:*
 if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
                    !((c->x86_model == 0xe) || (c->x86_model == 0xf) ||
                        (c->x86_model == 0x16))) {

                        /* supported CPU not found, but report the unknown
                           family 6 CPU */
                        if ((c->x86 == 0x6) && (c->x86_model > 0xf))
                                printk(KERN_WARNING DRVNAME ": Unknown CPU "
                                        "model %x\n", c->x86_model);
                        continue;
                }
*to*
 if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
                    !((c->x86_model == 0xe) || (c->x86_model == 0xf) ||
                        (c->x86_model == 0x16)*||(c->x86_model == 0x17)*)) {

                        /* supported CPU not found, but report the unknown
                           family 6 CPU */
                        if ((c->x86 == 0x6) && (c->x86_model > 0xf))
                                printk(KERN_WARNING DRVNAME ": Unknown CPU "
                                        "model %x\n", c->x86_model);
                        continue;
                }
----------------------------------------------------------
*Info:*
# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : *23*
model name      : Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
stepping        : 7
cpu MHz         : 1998.000
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe 
syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor 
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips        : 5319.97
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-12  7:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12  7:29 [Fwd: how to add support in coretemp.c for Q9450 processor] Eric Benton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox