]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: CPPC: Check present CPUs for determining _CPC is valid
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 24 Dec 2021 01:04:58 +0000 (09:04 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Dec 2021 17:51:39 +0000 (18:51 +0100)
commit9ab4fbc76aff831daa29210e619881c02aa26f1b
tree5e1ef5729753f98e1fd141a155a79150ecd35c3c
parentb4ef3a291dc3a2e5747ffd7ef35563e18832ff72
ACPI: CPPC: Check present CPUs for determining _CPC is valid

As this is a static check, it should be based upon what is currently
present on the system. This makes probeing more deterministic.

While local APIC flags field (lapic_flags) of cpu core in MADT table is
0, then the cpu core won't be enabled. In this case, _CPC won't be found
in this core, and return back to _CPC invalid with walking through
possible cpus (include disable cpus). This is not expected, so switch to
check present CPUs instead.

Reported-by: Jinzhou Su <Jinzhou.Su@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c