qcacmn: Add new QDF API's to handle napi requirements
Add new QDF API's to handle napi, softirq related handling in rx thread and rx refill thread. Change-Id: I0f371c89e65d8b20f059c56097bac07ec1e19cc9 CRs-Fixed: 3341804
This commit is contained in:

committed by
Madan Koyyalamudi

parent
b17c45a9d8
commit
edc0d60122
@@ -58,8 +58,9 @@ void qdf_set_user_nice(qdf_thread_t *thread, long nice);
|
||||
|
||||
/**
|
||||
* qdf_create_thread() - create a kernel thread
|
||||
* @thread: pointer to thread
|
||||
* @nice: nice value
|
||||
* @thread_handler: pointer to thread handler
|
||||
* @data: data
|
||||
* @thread_name: thread name
|
||||
*
|
||||
* Return: pointer to created kernel thread on success else NULL
|
||||
*/
|
||||
@@ -70,8 +71,9 @@ qdf_thread_t *qdf_create_thread(int (*thread_handler)(void *data), void *data,
|
||||
* qdf_thread_run() - run the given function in a new thread
|
||||
*
|
||||
* You must call qdf_thread_join() to avoid a reasource leak!
|
||||
*
|
||||
* For more flexibility, use qdf_create_thread() instead.
|
||||
* @callback: callback function
|
||||
* @context: context
|
||||
*
|
||||
* Return: a new qdf_thread pointer
|
||||
*/
|
||||
@@ -79,6 +81,7 @@ qdf_thread_t *qdf_thread_run(qdf_thread_func callback, void *context);
|
||||
|
||||
/**
|
||||
* qdf_thread_join() - signal and wait for a thread to stop
|
||||
* @thread: pointer to thread
|
||||
*
|
||||
* This sets a flag that the given thread can check to see if it should exit.
|
||||
* The thread can check to see if this flag has been set by calling
|
||||
@@ -107,7 +110,7 @@ bool qdf_thread_should_stop(void);
|
||||
int qdf_wake_up_process(qdf_thread_t *thread);
|
||||
|
||||
/**
|
||||
* qdf_print_stack_trace_thread() - prints the stack trace of the given thread
|
||||
* qdf_print_thread_trace() - prints the stack trace of the given thread
|
||||
* @thread: the thread for which the stack trace will be printed
|
||||
*
|
||||
* Return: None
|
||||
@@ -209,4 +212,20 @@ void qdf_cpumask_copy(qdf_cpu_mask *dstp,
|
||||
*/
|
||||
void qdf_cpumask_or(qdf_cpu_mask *dstp, qdf_cpu_mask *src1p,
|
||||
qdf_cpu_mask *src2p);
|
||||
|
||||
/**
|
||||
* qdf_thread_cpumap_print_to_pagebuf - copies the cpumask into the buffer
|
||||
* either as comma-separated list of cpus or hex values of cpumask
|
||||
* @list: indicates whether the cpumap is list or not
|
||||
* @new_mask: the cpumask to copy
|
||||
* @new_mask_str: the buffer to copy into
|
||||
*
|
||||
* This functions copies the cpu mask set for the thread by
|
||||
* qdf_thread_set_cpus_allowed_mask() to new_mask_str
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void
|
||||
qdf_thread_cpumap_print_to_pagebuf(bool list, char *new_mask_str,
|
||||
qdf_cpu_mask *new_mask);
|
||||
#endif /* __QDF_THREADS_H */
|
||||
|
Reference in New Issue
Block a user