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
This commit is contained in:
Vivek
2020-12-09 11:02:19 +05:30
committed by snandini
parent 80cf078dab
commit 97f44cd39e
4 changed files with 25 additions and 1 deletions

View File

@@ -219,6 +219,16 @@ QDF_STATUS scheduler_post_message_debug(QDF_MODULE_ID src_id,
*/
void scheduler_resume(void);
/**
* scheduler_set_timeout() - set scheduler timeout for msg processing
*
* Configure the timeout for triggering the scheduler watchdog timer
* in milliseconds
*
* Return: none
*/
void scheduler_set_watchdog_timeout(uint32_t timeout);
/**
* scheduler_register_hdd_suspend_callback() - suspend callback to hdd
* @callback: hdd callback to be called when controllred thread is suspended