Skip to content

Commit 0e1ab0f

Browse files
author
Herton R. Krzesinski
committed
Merge: Fix the broken CPPC check for non-X86 systems
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1971 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2164217 The ACPI v5.18 rebase had a commit that was backported with conflicts. In resolving the conflicts, I accidentally hid the enable of the CPPC cpufreq driver behind CONFIG_X86. Non-x86 systems stopped being able to use cpufreq. Revert the bad commit and re-apply it correctly to resolve the issue. Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com> Approved-by: Steve Best <sbest@redhat.com> Approved-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 05d2a72 + 45852ee commit 0e1ab0f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/acpi/bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static void acpi_bus_osc_negotiate_platform_control(void)
370370

371371
capbuf_ret = context.ret.pointer;
372372
if (context.ret.length > OSC_SUPPORT_DWORD) {
373-
#ifdef CONFIG_X86
373+
#ifdef CONFIG_ACPI_CPPC_LIB
374374
osc_sb_cppc2_support_acked = capbuf_ret[OSC_SUPPORT_DWORD] & OSC_SB_CPCV2_SUPPORT;
375375
#endif
376376

drivers/acpi/cppc_acpi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
675675

676676
if (!osc_sb_cppc2_support_acked) {
677677
pr_debug("CPPC v2 _OSC not acked\n");
678-
if (!cpc_supported_by_cpu())
679-
return -ENODEV;
678+
return -ENODEV;
680679
}
681680

682681
/* Parse the ACPI _CPC table for this CPU. */

0 commit comments

Comments
 (0)