RE: [lm-sensors] Patch[1/1] Adding Core Thermal Threshold Support to_Coretemp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gong,

> > +	/* Mask the thermal vector in the lapic */
> > +	l = apic_read(APIC_LVTTHMR);
> > +	apic_write(APIC_LVTTHMR, l | APIC_LVT_MASKED);
> > +
> > +	rdmsr_on_cpu(data->id, MSR_IA32_THERM_INTERRUPT,&eax,&edx);
> 
> apic_write and rdmsr_on_cpu maybe don't point to the same CPU.
> Maybe it is a potential issue. The below apic_xxx etc. are same situations.

Yes. Agreed. Figured out that there is a way to execute a function on a
particular CPU, if we know cpu->id. So, shall modify the patch accordingly
and submit it. 
Sorry for the late response. It took some time to find out how to do this.


Thanks,
Durgadoss
ÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj·¥Š{±ý¶›¡Ü}©ž²ÆzÚj:+v‰¨þø®w¥þŠàÞ¨è&¢)ß«a¶Úÿûz¹ÞúŽŠÝjÿŠwèf



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux