ACPI: CPPC: Add ACPI disabled check to acpi_cpc_valid()
authorPerry Yuan <Perry.Yuan@amd.com>
Sun, 14 Aug 2022 16:35:48 +0000 (00:35 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Aug 2022 11:55:17 +0000 (13:55 +0200)
commita2a9d1850060e5d995136561d76e81d61414f076
tree673e97afcb75551e6285adda9855c39cd078b81b
parent1c23f9e627a7b412978b4e852793c5e3c3efc555
ACPI: CPPC: Add ACPI disabled check to acpi_cpc_valid()

Make acpi_cpc_valid() check if ACPI is disabled, so that its callers
don't need to check that separately.  This will also cause the AMD
pstate driver to refuse to load right away when ACPI is disabled.

Also update the warning message in amd_pstate_init() to mention the
ACPI disabled case for completeness.

Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
[ rjw: Subject edits, new changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c
drivers/base/arch_topology.c
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/cppc_cpufreq.c