qcacmn: Add dispatcher enable/disable stubs

In preparation for splitting dispatcher init/deinit into init, enable,
disable, and deinit, add stubs for the new enable/disable dispatcher
calls. This will ease the transition for code that will leverage the new
APIs.

Change-Id: Ideee2db05f87978d5ad0796fba5e46042d5b4d41
CRs-Fixed: 2153871
This commit is contained in:
Dustin Brown 2017-12-05 10:14:59 -08:00 • committed by snandini
commit 53acad9180
2 changed files with 32 additions and 0 deletions

View file

@ -61,6 +61,26 @@ QDF_STATUS dispatcher_init(void);
*/
QDF_STATUS dispatcher_deinit(void);
/**
* dispatcher_enable(): global (above psoc) level component start
*
* Prepare components to service requests. Must only be called after
* dispatcher_init().
*
* Return: QDF_STATUS
*/
QDF_STATUS dispatcher_enable(void);
/**
* dispatcher_disable(): global (above psoc) level component stop
*
* Stop components from servicing requests. Must be called before
* scheduler_deinit().
*
* Return: QDF_STATUS
*/
QDF_STATUS dispatcher_disable(void);
/**
* dispatcher_psoc_open(): API to trigger PSOC open for all new components
* @psoc: psoc context

View file

@ -780,6 +780,18 @@ QDF_STATUS dispatcher_deinit(void)
}
EXPORT_SYMBOL(dispatcher_deinit);
QDF_STATUS dispatcher_enable(void)
{
return QDF_STATUS_SUCCESS;
}
EXPORT_SYMBOL(dispatcher_enable);
QDF_STATUS dispatcher_disable(void)
{
return QDF_STATUS_SUCCESS;
}
EXPORT_SYMBOL(dispatcher_disable);
QDF_STATUS dispatcher_psoc_open(struct wlan_objmgr_psoc *psoc)
{
if (QDF_STATUS_SUCCESS != wlan_mgmt_txrx_psoc_open(psoc))