qcacmn: Add QDF timer multiplier for all timers on host

Some QDF timers on host do not use the QDF timer multiplier. Add QDF timer
multiplier so that all timers on host have it.

Change-Id: I57acb28240ea815aaed685b5a193e492332cad69
CRs-Fixed: 2498149
This commit is contained in:
Alan Chen
2019-07-26 15:14:32 -07:00
committed by nshrivas
parent a0a995d824
commit 8fbc8c2941
4 changed files with 16 additions and 13 deletions

View File

@@ -51,19 +51,13 @@ qdf_timer_init(qdf_handle_t hdl, qdf_timer_t *timer, qdf_timer_func_t func,
return __qdf_timer_init(timer, func, arg, type);
}
#ifdef QDF_TIMER_MULTIPLIER_FRAC
#define qdf_msecs_to_jiffies(msec) \
(QDF_TIMER_MULTIPLIER_FRAC * __qdf_msecs_to_jiffies(msec))
#else
#define qdf_msecs_to_jiffies(msec) \
(qdf_timer_get_multiplier() * __qdf_msecs_to_jiffies(msec))
#endif
/**
* qdf_timer_start() - start a timer
* @timer: timer to start
* @msec: Expiration period in milliseconds
*
* If QDF timer multiplier is set, the timeout value may get scaled.
*
* Return: none
*/
static inline void qdf_timer_start(qdf_timer_t *timer, int msec)
@@ -78,6 +72,8 @@ static inline void qdf_timer_start(qdf_timer_t *timer, int msec)
*
* If @timer is not active, it will be activated.
*
* If QDF timer multiplier is set, the timeout value may get scaled.
*
* Return: none
*/
static inline void qdf_timer_mod(qdf_timer_t *timer, int msec)