diff mbox series

[v2,5/5] hwmon: (k10temp) Don't show temperature limits on Ryzen (Zen) CPUs

Message ID 20200118172615.26329-6-linux@roeck-us.net (mailing list archive)
State Superseded
Headers show
Series hwmon: k10temp driver improvements | expand

Commit Message

Guenter Roeck Jan. 18, 2020, 5:26 p.m. UTC
The maximum Tdie or Tctl is not published for Ryzen CPUs. What is
known, however, is that the traditional value of 70 degrees C is no
longer correct. Displaying it is meaningless, confusing, and wrong.
Stop doing it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
v2: Added patch.

 drivers/hwmon/k10temp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index a4313b662a3a..cdfebe435003 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -347,7 +347,7 @@  static umode_t k10temp_is_visible(const void *_data,
 		case hwmon_temp_max:
-			if (channel)
+			if (channel || data->show_tdie)
 				return 0;
 		case hwmon_temp_crit: