]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: PCC: replace wait_for_completion()
authorHuisong Li <lihuisong@huawei.com>
Tue, 20 Sep 2022 09:44:59 +0000 (17:44 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Sep 2022 19:08:03 +0000 (21:08 +0200)
commitdffcb76644b58ae823e8ad87e15b73edabb33393
treeb79f8c9bcba74735344cd6288592e6aa201b8286
parente73ae435a8fce16975e0b2c4abd0ee452e95933c
ACPI: PCC: replace wait_for_completion()

Currently, the function waiting for completion of mailbox operation is
'wait_for_completion()'.  The PCC method will be permanently blocked if
this mailbox message fails to execute. So this patch replaces it with
'wait_for_completion_timeout()'. And set the timeout interval to an
arbitrary retries on top of nominal to prevent the remote processor is
slow to respond to PCC commands.

Fixes: 65d79eae7786 ("ACPI: PCC: Implement OperationRegion handler for the PCC Type 3 subtype")
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pcc.c