Skip to content

Commit a8aaea4

Browse files
committed
Merge back cpufreq material for 6.13
2 parents 1a1030d + 00e2c19 commit a8aaea4

25 files changed

+123
-166
lines changed

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,17 @@ static unsigned int acpi_pstate_strict;
7373

7474
static bool boost_state(unsigned int cpu)
7575
{
76-
u32 lo, hi;
7776
u64 msr;
7877

7978
switch (boot_cpu_data.x86_vendor) {
8079
case X86_VENDOR_INTEL:
8180
case X86_VENDOR_CENTAUR:
8281
case X86_VENDOR_ZHAOXIN:
83-
rdmsr_on_cpu(cpu, MSR_IA32_MISC_ENABLE, &lo, &hi);
84-
msr = lo | ((u64)hi << 32);
82+
rdmsrl_on_cpu(cpu, MSR_IA32_MISC_ENABLE, &msr);
8583
return !(msr & MSR_IA32_MISC_ENABLE_TURBO_DISABLE);
8684
case X86_VENDOR_HYGON:
8785
case X86_VENDOR_AMD:
88-
rdmsr_on_cpu(cpu, MSR_K7_HWCR, &lo, &hi);
89-
msr = lo | ((u64)hi << 32);
86+
rdmsrl_on_cpu(cpu, MSR_K7_HWCR, &msr);
9087
return !(msr & MSR_K7_HWCR_CPB_DIS);
9188
}
9289
return false;
@@ -1028,7 +1025,7 @@ static struct platform_driver acpi_cpufreq_platdrv = {
10281025
.driver = {
10291026
.name = "acpi-cpufreq",
10301027
},
1031-
.remove_new = acpi_cpufreq_remove,
1028+
.remove = acpi_cpufreq_remove,
10321029
};
10331030

10341031
static int __init acpi_cpufreq_init(void)

drivers/cpufreq/amd-pstate-ut.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ static void amd_pstate_ut_check_freq(u32 index)
227227
goto skip_test;
228228
}
229229

230-
if (cpudata->min_freq != policy->min) {
230+
if (cpudata->lowest_nonlinear_freq != policy->min) {
231231
amd_pstate_ut_cases[index].result = AMD_PSTATE_UT_RESULT_FAIL;
232-
pr_err("%s cpu%d cpudata_min_freq=%d policy_min=%d, they should be equal!\n",
233-
__func__, cpu, cpudata->min_freq, policy->min);
232+
pr_err("%s cpu%d cpudata_lowest_nonlinear_freq=%d policy_min=%d, they should be equal!\n",
233+
__func__, cpu, cpudata->lowest_nonlinear_freq, policy->min);
234234
goto skip_test;
235235
}
236236

0 commit comments

Comments
 (0)