]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (coretemp) Do not return -EAGAIN for low temperatures
authorGuenter Roeck <linux@roeck-us.net>
Wed, 20 Nov 2013 18:25:17 +0000 (10:25 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 15 Jan 2014 05:36:52 +0000 (21:36 -0800)
commitc442e370bea24a8a9693924fa8c8af6152782223
tree2a2feafbbaae6a0c5000bd217eb6e9327753af70
parent1d1eccacfd32aa3bc12d72bde57fbf4171b3f247
hwmon: (coretemp) Do not return -EAGAIN for low temperatures

Some Intel CPUs do not set the 'valid' bit in IA32_THERM_STATUS if the
temperature is too low to be measured. This condition will not change until
the CPU is hot enough for its temperature to be measured. Returning an error
in such conditions is not very useful. Drop checking the valid bit and just
return the reported temperature instead.

Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c