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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user