]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
x86/msr: Rename 'wrmsrl_safe_on_cpu()' to 'wrmsrq_safe_on_cpu()'
authorIngo Molnar <mingo@kernel.org>
Wed, 9 Apr 2025 20:28:59 +0000 (22:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Apr 2025 09:58:55 +0000 (11:58 +0200)
Suggested-by: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Xin Li <xin@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/msr.h
arch/x86/kernel/acpi/cppc.c
arch/x86/lib/msr-smp.c
drivers/cpufreq/amd-pstate.c
drivers/platform/x86/intel/speed_select_if/isst_if_common.c

index c86814c35dec50d3b53d624e24cc900e9b4e1112..52983279c953f497592f3b3ed293a4f531a88578 100644 (file)
@@ -336,7 +336,7 @@ void wrmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr __percpu *
 int rdmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
 int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
 int rdmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);
-int wrmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q);
+int wrmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q);
 int rdmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]);
 int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]);
 #else  /*  CONFIG_SMP  */
@@ -383,7 +383,7 @@ static inline int rdmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q)
 {
        return rdmsrq_safe(msr_no, q);
 }
-static inline int wrmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q)
+static inline int wrmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q)
 {
        return wrmsrq_safe(msr_no, q);
 }
index 6a10d73cb88b43b8cc4b4b967f8b09c1475d9c5e..78b4e4b409850a59296e365fc447c9a150fa60db 100644 (file)
@@ -74,7 +74,7 @@ int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val)
                val &= mask;
                rd_val &= ~mask;
                rd_val |= val;
-               err = wrmsrl_safe_on_cpu(cpunum, reg->address, rd_val);
+               err = wrmsrq_safe_on_cpu(cpunum, reg->address, rd_val);
        }
        return err;
 }
index 0360ce20aae8c1048a59c26e3b8a7746e06a3ddc..434fdc21a86e17a8c11789c5ef59a4cbbb06e0d9 100644 (file)
@@ -204,7 +204,7 @@ int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h)
 }
 EXPORT_SYMBOL(wrmsr_safe_on_cpu);
 
-int wrmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q)
+int wrmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q)
 {
        int err;
        struct msr_info rv;
@@ -218,7 +218,7 @@ int wrmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q)
 
        return err ? err : rv.err;
 }
-EXPORT_SYMBOL(wrmsrl_safe_on_cpu);
+EXPORT_SYMBOL(wrmsrq_safe_on_cpu);
 
 int rdmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q)
 {
index 16a3fe2207ba007c0d7bd639726d13459d626e50..0615c73306cffc5058f56949e0df9bc0b20fca81 100644 (file)
@@ -371,7 +371,7 @@ static int shmem_set_epp(struct cpufreq_policy *policy, u8 epp)
 
 static inline int msr_cppc_enable(struct cpufreq_policy *policy)
 {
-       return wrmsrl_safe_on_cpu(policy->cpu, MSR_AMD_CPPC_ENABLE, 1);
+       return wrmsrq_safe_on_cpu(policy->cpu, MSR_AMD_CPPC_ENABLE, 1);
 }
 
 static int shmem_cppc_enable(struct cpufreq_policy *policy)
index 46b96f1aa5228b0291e42ee6a1960ac859f86fc5..44dcd165b4c079b405f0d0c492bc5c857730f41d 100644 (file)
@@ -191,7 +191,7 @@ void isst_resume_common(void)
                        if (cb->registered)
                                isst_mbox_resume_command(cb, sst_cmd);
                } else {
-                       wrmsrl_safe_on_cpu(sst_cmd->cpu, sst_cmd->cmd,
+                       wrmsrq_safe_on_cpu(sst_cmd->cpu, sst_cmd->cmd,
                                           sst_cmd->data);
                }
        }
@@ -524,7 +524,7 @@ static long isst_if_msr_cmd_req(u8 *cmd_ptr, int *write_only, int resume)
                if (!capable(CAP_SYS_ADMIN))
                        return -EPERM;
 
-               ret = wrmsrl_safe_on_cpu(msr_cmd->logical_cpu,
+               ret = wrmsrq_safe_on_cpu(msr_cmd->logical_cpu,
                                         msr_cmd->msr,
                                         msr_cmd->data);
                *write_only = 1;