Re: [PATCH 4/4] ACPI: PCC: Cache OpRegion command timeout
From: lihuisong (C)
Date: Tue Jul 21 2026 - 07:57:51 EST
On 7/17/2026 4:10 PM, Sudeep Holla wrote:
The PCC OperationRegion handler computes the same command completionLGTM,
wait timeout each time it sends a command. The timeout is derived from
static channel properties, so compute it once when the PCC channel is
set up and store the millisecond value in the mailbox client timeout
field.
Use the cached timeout when waiting for the OperationRegion command to
complete. This keeps the timeout calculation in one place and avoids
recomputing it for every command.
Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxxxxx>
---
Reviewed-by: Huisong Li <lihuisong@xxxxxxxxxx>