wcnss: Expose dump stack functionality

Add changes to expose dump stack functionality which can be used
by driver to dump stack information when it requires.

CRs-Fixed: 943322
Change-Id: I0fde7142dea2c18daf6b1fb0c5ee4bb8a31a6be0
Signed-off-by: Padma, Santhosh Kumar <skpadma@codeaurora.org>
This commit is contained in:
Padma, Santhosh Kumar 2015-11-25 12:30:19 +05:30 committed by David Keitel
parent 41778206e4
commit fdffe2c952
2 changed files with 12 additions and 0 deletions

View file

@ -3199,6 +3199,16 @@ void wcnss_flush_work(struct work_struct *work)
}
EXPORT_SYMBOL(wcnss_flush_work);
/* wlan prop driver cannot invoke show_stack
* function directly, so to invoke this function it
* call wcnss_dump_stack function
*/
void wcnss_dump_stack(struct task_struct *task)
{
show_stack(task, NULL);
}
EXPORT_SYMBOL(wcnss_dump_stack);
/* wlan prop driver cannot invoke cancel_delayed_work_sync
* function directly, so to invoke this function it call
* wcnss_flush_delayed_work function

View file

@ -15,6 +15,7 @@
#define _WCNSS_WLAN_H_
#include <linux/device.h>
#include <linux/sched.h>
#define IRIS_REGULATORS 4
#define PRONTO_REGULATORS 3
@ -136,6 +137,7 @@ void wcnss_flush_delayed_work(struct delayed_work *dwork);
void wcnss_init_work(struct work_struct *work , void *callbackptr);
void wcnss_init_delayed_work(struct delayed_work *dwork , void *callbackptr);
int wcnss_get_iris_name(char *iris_version);
void wcnss_dump_stack(struct task_struct *task);
#ifdef CONFIG_WCNSS_REGISTER_DUMP_ON_BITE
void wcnss_log_debug_regs_on_bite(void);