]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/msr: Switch rdmsrl() users to rdmsrq()
authorJuergen Gross <jgross@suse.com>
Mon, 8 Jun 2026 08:28:06 +0000 (10:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 8 Jun 2026 11:16:34 +0000 (13:16 +0200)
rdmsrl() is a deprecated synonym for rdmsrq(). Switch its users to
rdmsrq().

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Long Li <longli@microsoft.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Link: https://patch.msgid.link/20260608082809.3492719-2-jgross@suse.com
arch/x86/events/amd/uncore.c
arch/x86/kernel/cpu/resctrl/monitor.c
drivers/hv/mshv_vtl_main.c
drivers/idle/intel_idle.c

index dd956cfcadefade0a125ed48ff7916a0a6790b93..98ef4bf9911a7327eb4765f08e972db6da3416db 100644 (file)
@@ -966,7 +966,7 @@ static void amd_uncore_umc_read(struct perf_event *event)
         * UMC counters do not have RDPMC assignments. Read counts directly
         * from the corresponding PERF_CTR.
         */
-       rdmsrl(hwc->event_base, new);
+       rdmsrq(hwc->event_base, new);
 
        /*
         * Unlike the other uncore counters, UMC counters saturate and set the
index 9bd87bae4983420911c6ffea9799c5a1cfbe6c35..4dc112d51d2a545075dfc8c71477ca044d0c19a2 100644 (file)
@@ -301,7 +301,7 @@ static int __cntr_id_read(u32 cntr_id, u64 *val)
         * is set if the counter data is unavailable.
         */
        wrmsr(MSR_IA32_QM_EVTSEL, ABMC_EXTENDED_EVT_ID | ABMC_EVT_ID, cntr_id);
-       rdmsrl(MSR_IA32_QM_CTR, msr_val);
+       rdmsrq(MSR_IA32_QM_CTR, msr_val);
 
        if (msr_val & RMID_VAL_ERROR)
                return -EIO;
index c1940070146783f52fd864779740719af0ad9a6e..f5d27f28d6ad971cf6a632180f4ef98a88e75017 100644 (file)
@@ -598,7 +598,7 @@ static int mshv_vtl_get_set_reg(struct hv_register_assoc *regs, bool set)
                        if (set)
                                wrmsrl(reg_table[i].msr_addr, *reg64);
                        else
-                               rdmsrl(reg_table[i].msr_addr, *reg64);
+                               rdmsrq(reg_table[i].msr_addr, *reg64);
                }
                return 0;
        }
index f49354e3777779597c0bab38bd0d0de3ed6a09fa..15c698291b32a8b147e3690a4f1127ed32934b39 100644 (file)
@@ -2370,7 +2370,7 @@ static void intel_c1_demotion_toggle(void *enable)
 {
        unsigned long long msr_val;
 
-       rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
+       rdmsrq(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
        /*
         * Enable/disable C1 undemotion along with C1 demotion, as this is the
         * most sensible configuration in general.
@@ -2410,7 +2410,7 @@ static ssize_t intel_c1_demotion_show(struct device *dev,
         * Read the MSR value for a CPU and assume it is the same for all CPUs. Any other
         * configuration would be a BIOS bug.
         */
-       rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
+       rdmsrq(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
        return sysfs_emit(buf, "%d\n", !!(msr_val & NHM_C1_AUTO_DEMOTE));
 }
 static DEVICE_ATTR_RW(intel_c1_demotion);