Skip to content

Commit 21fb59a

Browse files
committed
ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio() to warn
If the boost ratio isn't calculated properly for the system for any reason this can cause other problems that are non-obvious. Raise all messages to warn instead. Suggested-by: Perry Yuan <[email protected]> Reviewed-by: Perry Yuan <[email protected]> Reviewed-by: Gautham R. Shenoy <[email protected]> Signed-off-by: Mario Limonciello <[email protected]>
1 parent 3355ac2 commit 21fb59a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/kernel/acpi/cppc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ static void amd_set_max_freq_ratio(void)
7575

7676
rc = cppc_get_perf_caps(0, &perf_caps);
7777
if (rc) {
78-
pr_debug("Could not retrieve perf counters (%d)\n", rc);
78+
pr_warn("Could not retrieve perf counters (%d)\n", rc);
7979
return;
8080
}
8181

8282
rc = amd_get_boost_ratio_numerator(0, &numerator);
8383
if (rc) {
84-
pr_debug("Could not retrieve highest performance (%d)\n", rc);
84+
pr_warn("Could not retrieve highest performance (%d)\n", rc);
8585
return;
8686
}
8787
nominal_perf = perf_caps.nominal_perf;
8888

8989
if (!nominal_perf) {
90-
pr_debug("Could not retrieve nominal performance\n");
90+
pr_warn("Could not retrieve nominal performance\n");
9191
return;
9292
}
9393

0 commit comments

Comments
 (0)