Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'hwmon-for-linus-v4.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull hwmon fix from Guenter Roeck:
"Fix bad temperature display on Ryzen/Threadripper"

* tag 'hwmon-for-linus-v4.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (k10temp) Only apply temperature offset if result is positive

+4 -1
+4 -1
drivers/hwmon/k10temp.c
··· 129 129 130 130 data->read_tempreg(data->pdev, &regval); 131 131 temp = (regval >> 21) * 125; 132 - temp -= data->temp_offset; 132 + if (temp > data->temp_offset) 133 + temp -= data->temp_offset; 134 + else 135 + temp = 0; 133 136 134 137 return sprintf(buf, "%u\n", temp); 135 138 }