Re: [PATCH] msr: replace rdmsr()/wrmsr() in comments
From: Jürgen Groß
Date: Mon Nov 23 2026 - 09:03:15 EST
On 23.11.26 14:33, Asaf Nuri Bertizlioğlu wrote:
On Mon, Nov 23, 2026 at 09:08:22AM +0100, Juergen Gross wrote:I'm happy to send a V2 with the sentence dropped.
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -67,7 +67,7 @@ enum coretemp_attr_index {
* @cpu_core_id: The CPU Core from which temperature values should be read
- * This value is passed as "id" field to rdmsr/wrmsr functions.
+ * This value is passed as "id" field to rdmsrq/wrmsrq functions.
This sentence has been inaccurate since it was added in v3.0:
cpu_core_id is never passed to an MSR accessor. coretemp reads the
MSRs with rdmsrq_on_cpu()/rdmsrq_safe_on_cpu() on the logical CPU
(tdata->cpu), and cpu_core_id is only used for the "Core N" label,
the sysfs attribute index and sibling matching. The current driver
also does not write any MSR.
I think the sentence should be dropped rather than renamed. If you
prefer to keep this patch mechanical, I can send a separate coretemp
patch for it.
Juergen
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature