msm: adsprpc: add ioctl control for thread exit

Add ioctl control support to exit notif and async
threads.

Change-Id: Ifc7212fd84bdba46724252e00e1d479865cefc64
Signed-off-by: nishant chaubey <quic_chaubey@quicinc.com>
This commit is contained in:
nishant chaubey
2023-02-13 11:08:37 +05:30
parent 0821b24a81
commit 4fef948448
2 changed files with 31 additions and 0 deletions

View File

@@ -491,6 +491,8 @@ enum fastrpc_control_type {
/* Clean process on DSP */
FASTRPC_CONTROL_DSPPROCESS_CLEAN = 6,
FASTRPC_CONTROL_RPC_POLL = 7,
FASTRPC_CONTROL_ASYNC_WAKE = 8,
FASTRPC_CONTROL_NOTIF_WAKE = 9,
};
struct fastrpc_ctrl_latency {
@@ -1098,6 +1100,10 @@ struct fastrpc_file {
spinlock_t dspsignals_lock;
struct mutex signal_create_mutex;
struct completion shutdown;
/* Flag to indicate notif thread exit requested*/
bool exit_notif;
/* Flag to indicate async thread exit requested*/
bool exit_async;
};
union fastrpc_ioctl_param {