hwmon: (k10temp) Swap Tdie and Tctl on Family 17h CPUs
authorGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 15:57:09 +0000 (07:57 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Mar 2020 03:35:46 +0000 (20:35 -0700)
commitb02c6857389da66b09e447103bdb247ccd182456
tree375c3bb9dd1170043f4d55e32d28a19f769d5a5e
parentc21a12d003d066b7a28c52cdbcac88653ea42ecd
hwmon: (k10temp) Swap Tdie and Tctl on Family 17h CPUs

Traditionally, the temperature displayed by k10temp was Tctl.
On Family 17h CPUs, Tdie was displayed instead. To reduce confusion,
Tctl was added later as second temperature. This resulted in Tdie
being reported as temp1_input, and Tctl as temp2_input. This is
different to non-Ryzen CPUs, where Tctl is displayed as temp1_input.
Swap temp1_input and temp2_input on Family 17h CPUs, such that Tctl
is now reported as temp1_input and Tdie is reported as temp2_input,
to align with other CPUs, streamline the code, and make it less
confusing. Coincidentally, this also aligns the code with its
documentation, which states that Tdie is reported as temp2_input.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/k10temp.c