qcacmn: Add API to configure scheduler watchdog timeout

The scheduler watchdog timeout is currently fixed at 10secs.
There are few customer use cases, where the CPU is busy for
sometime and the scheduler message processing is taking longer than
the coinfigured watchdog timeout value.

Add a new API to be able to configure this value different than the
default as per the requirement.

CRs-Fixed: 2834194
Change-Id: I976f1f0ad17f09cf3960f99ad80226d775b8b2f2
Cette révision appartient à :
Vivek
2020-12-09 11:02:19 +05:30
révisé par snandini
Parent 80cf078dab
révision 97f44cd39e
4 fichiers modifiés avec 25 ajouts et 1 suppressions

Voir le fichier

@@ -99,6 +99,7 @@ struct scheduler_mq_ctx {
* @hdd_callback: os if suspend callback
* @legacy_wma_handler: legacy wma message handler
* @legacy_sys_handler: legacy sys message handler
* @timeout: timeout value for scheduler watchdog timer
* @watchdog_timer: timer for triggering a scheduler watchdog bite
* @watchdog_callback: the callback of the current msg being processed
*/
@@ -116,6 +117,7 @@ struct scheduler_ctx {
hdd_suspend_callback hdd_callback;
scheduler_msg_process_fn_t legacy_wma_handler;
scheduler_msg_process_fn_t legacy_sys_handler;
uint32_t timeout;
qdf_timer_t watchdog_timer;
void *watchdog_callback;
};