summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/coretemp.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2023-03-30 18:33:46 +0800
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 07:08:39 -0700
commita2930f6dc90f07b2d956cab5f98b594b16918132 (patch)
tree1e89c1aecbc34ef25d956ea5bb2a4a73b34425c9 /drivers/hwmon/coretemp.c
parent6c2b659913ad9c70c30050efc3e287fd0869012a (diff)
downloadlinux-a2930f6dc90f07b2d956cab5f98b594b16918132.tar.gz
linux-a2930f6dc90f07b2d956cab5f98b594b16918132.tar.bz2
linux-a2930f6dc90f07b2d956cab5f98b594b16918132.zip
hwmon: (coretemp) Delete an obsolete comment
The refinement of tjmax value retrieved from MSR_IA32_TEMPERATURE_TARGET has been changed for several times. Now, the raw value from MSR is used without refinement. Thus remove the obsolete comment. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Link: https://lore.kernel.org/r/20230330103346.6044-2-rui.zhang@intel.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r--drivers/hwmon/coretemp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index fe3d4d0dcbed..eba94f68585a 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -282,10 +282,6 @@ static int get_tjmax(struct temp_data *tdata, struct device *dev)
dev_warn(dev, "Unable to read TjMax from CPU %u\n", tdata->cpu);
} else {
val = (eax >> 16) & 0xff;
- /*
- * If the TjMax is not plausible, an assumption
- * will be used
- */
if (val)
return val * 1000;
}