mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn: Add return as int for qdf hrtimer cancel
Add return value as int to check the success and failure of hrtimer cancel. CRs-Fixed: 2292414 Change-Id: I7bfe94882551533c3f6b4164a2a3f778216b281b
This commit is contained in:
parent
3952f2b86c
commit
18fcc5548a
2 changed files with 9 additions and 7 deletions
|
|
@ -58,12 +58,12 @@ void qdf_hrtimer_start(qdf_hrtimer_data_t *timer, qdf_ktime_t interval,
|
|||
*
|
||||
* Cancels hrtimer in given context
|
||||
*
|
||||
* Return: void
|
||||
* Return: int
|
||||
*/
|
||||
static inline
|
||||
void qdf_hrtimer_cancel(qdf_hrtimer_data_t *timer)
|
||||
int qdf_hrtimer_cancel(qdf_hrtimer_data_t *timer)
|
||||
{
|
||||
__qdf_hrtimer_cancel(timer);
|
||||
return __qdf_hrtimer_cancel(timer);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -66,15 +66,17 @@ void __qdf_hrtimer_start(__qdf_hrtimer_data_t *timer, ktime_t interval,
|
|||
*
|
||||
* cancels hrtimer in given context
|
||||
*
|
||||
* Return: void
|
||||
* Return: int
|
||||
*/
|
||||
static inline
|
||||
void __qdf_hrtimer_cancel(__qdf_hrtimer_data_t *timer)
|
||||
int __qdf_hrtimer_cancel(__qdf_hrtimer_data_t *timer)
|
||||
{
|
||||
if (timer->ctx == QDF_CONTEXT_HARDWARE)
|
||||
hrtimer_cancel(&timer->u.hrtimer);
|
||||
return hrtimer_cancel(&timer->u.hrtimer);
|
||||
else if (timer->ctx == QDF_CONTEXT_TASKLET)
|
||||
hrtimer_cancel(&timer->u.tasklet_hrtimer.timer);
|
||||
return hrtimer_cancel(&timer->u.tasklet_hrtimer.timer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue