ソースを参照

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
Dustin Brown 7 年 前
コミット
53acad9180

+ 20 - 0
init_deinit/dispatcher/inc/dispatcher_init_deinit.h

@@ -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

+ 12 - 0
init_deinit/dispatcher/src/dispatcher_init_deinit.c

@@ -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))