Re: [PATCH] msr: replace rdmsr()/wrmsr() in comments
From: Asaf Nuri Bertizlioğlu
Date: Mon Nov 23 2026 - 08:35:38 EST
On Mon, Nov 23, 2026 at 09:08:22AM +0100, Juergen Gross wrote:
> 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.
Thanks,
Asaf