Skip to content

Commit 6c2b659

Browse files
zhang-ruigroeck
authored andcommitted
hwmon: (coretemp) Delete tjmax debug message
After commit c0c67f8 ("hwmon: (coretemp) Add support for dynamic tjmax"), tjmax value is retrieved from MSR every time the temperature is read. This means that, with debug message enabled, the tjmax debug message is printed out for every single temperature read for any CPU. This spams the syslog. Ideally, as tjmax is package scope unique, the debug message should show once when tjmax is changed for one package. But this requires inventing some new per-package data in the coretemp driver, and this is overkill. To keep the code simple, delete the tjmax debug message. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Link: https://lore.kernel.org/r/20230330103346.6044-1-rui.zhang@intel.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 3a31e09 commit 6c2b659

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/hwmon/coretemp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,8 @@ static int get_tjmax(struct temp_data *tdata, struct device *dev)
286286
* If the TjMax is not plausible, an assumption
287287
* will be used
288288
*/
289-
if (val) {
290-
dev_dbg(dev, "TjMax is %d degrees C\n", val);
289+
if (val)
291290
return val * 1000;
292-
}
293291
}
294292

295293
if (force_tjmax) {

0 commit comments

Comments
 (0)