On Mon, 01 Nov 2021 18:26:06 -0700, Vinay Belgaumkar wrote:
Define helpers and struct members required to record boost info. Boost frequency is initialized to RP0 at SLPC init. Also define num_waiters which can track the pending boost requests.
Boost will be done by scheduling a worker thread. This will avoid the need to make H2G calls inside an interrupt context. Initialize the worker function during SLPC init as well. Had to move intel_guc_slpc_init a few lines below to accomodate this.
v2: Add a workqueue to handle waitboost v3: Code review comments (Ashutosh)
Reviewed-by: Ashutosh Dixit ashutosh.dixit@intel.com