qcacmn: Add control path scheduler to common driver
Add control path converged scheduler functionality to common driver. Change-Id: I2087b985b4bed661c03e667dbcc082714add1266 CRs-Fixed: 1095867
This commit is contained in:
@@ -37,11 +37,13 @@
|
||||
#include "qdf_list.h"
|
||||
#include "qdf_mem.h"
|
||||
#include <linux/export.h>
|
||||
#ifndef NAPIER_CODE
|
||||
#ifdef CONFIG_MCL
|
||||
#include <cds_mc_timer.h>
|
||||
#endif
|
||||
/* Preprocessor definitions and constants */
|
||||
#endif
|
||||
|
||||
/* Preprocessor definitions and constants */
|
||||
#define LINUX_TIMER_COOKIE 0x12341234
|
||||
#define LINUX_INVALID_TIMER_COOKIE 0xfeedface
|
||||
#define TMR_INVALID_ID (0)
|
||||
@@ -59,6 +61,13 @@
|
||||
static unsigned int persistent_timer_count;
|
||||
static qdf_mutex_t persistent_timer_count_lock;
|
||||
|
||||
static void (*scheduler_timer_callback) (unsigned long data);
|
||||
void qdf_register_mc_timer_callback(void (*callback) (unsigned long data))
|
||||
{
|
||||
scheduler_timer_callback = callback;
|
||||
}
|
||||
EXPORT_SYMBOL(qdf_register_mc_timer_callback);
|
||||
|
||||
/* Function declarations and documenation */
|
||||
|
||||
/**
|
||||
@@ -287,7 +296,9 @@ QDF_STATUS qdf_mc_timer_init_debug(qdf_mc_timer_t *timer,
|
||||
init_timer_deferrable(&(timer->platform_info.timer));
|
||||
else
|
||||
init_timer(&(timer->platform_info.timer));
|
||||
#ifdef CONFIG_MCL
|
||||
#ifdef NAPIER_CODE
|
||||
timer->platform_info.timer.function = scheduler_timer_callback;
|
||||
#elif CONFIG_MCL
|
||||
timer->platform_info.timer.function = cds_linux_timer_callback;
|
||||
#else
|
||||
timer->platform_info.timer.function = NULL;
|
||||
@@ -323,7 +334,9 @@ QDF_STATUS qdf_mc_timer_init(qdf_mc_timer_t *timer, QDF_TIMER_TYPE timer_type,
|
||||
init_timer_deferrable(&(timer->platform_info.timer));
|
||||
else
|
||||
init_timer(&(timer->platform_info.timer));
|
||||
#ifdef CONFIG_MCL
|
||||
#ifdef NAPIER_CODE
|
||||
timer->platform_info.timer.function = scheduler_timer_callback;
|
||||
#elif CONFIG_MCL
|
||||
timer->platform_info.timer.function = cds_linux_timer_callback;
|
||||
#else
|
||||
timer->platform_info.timer.function = NULL;
|
||||
|
Reference in New Issue
Block a user