From: Guenter Roeck Date: Fri, 17 Jan 2020 14:43:20 +0000 (-0800) Subject: hwmon: (k10temp) Don't show temperature limits on Ryzen (Zen) CPUs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=70831c8a91845434c3792b0c3ef966dc30741ec0;p=linux.git hwmon: (k10temp) Don't show temperature limits on Ryzen (Zen) CPUs 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. On top of that, the limit applies to Tctl, not to Tdie. Displaying it in either context is meaningless, confusing, and wrong. Stop doing it. Tested-by: Brad Campbell Tested-by: Holger Kiehl Tested-by: Michael Larabel Tested-by: Jonathan McDowell Tested-by: Ken Moffat Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index b961e12c6f587..4a470b5195ee4 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -355,7 +355,7 @@ static umode_t k10temp_is_visible(const void *_data, } break; case hwmon_temp_max: - if (channel) + if (channel || data->show_tdie) return 0; break; case hwmon_temp_crit: