]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: CPPC: Modify cppc_get_auto_sel_caps() to cppc_get_auto_sel()
authorLifeng Zheng <zhenglifeng1@huawei.com>
Fri, 11 Apr 2025 09:38:54 +0000 (17:38 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2025 20:01:31 +0000 (22:01 +0200)
commit2605e4ab6615ef43361b18fc6d08dd884896aad8
tree82534a764d4851451e944edd04436268fea2f584
parentab482f1bac6b128b8fe910b6663a4f74a3a9796c
ACPI: CPPC: Modify cppc_get_auto_sel_caps() to cppc_get_auto_sel()

Modify cppc_get_auto_sel_caps() to cppc_get_auto_sel(). Using a
cppc_perf_caps to carry the value is unnecessary.

Add a check to ensure the pointer 'enable' is not null.

Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20250411093855.982491-8-zhenglifeng1@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c
drivers/cpufreq/amd-pstate.c
include/acpi/cppc_acpi.h