>The correct way to check if a timer is pending is to check timer->prev.
>There is no reason to also check timer->next, so I suggest something like
>
>extern inline int timer_pending(struct timer_list * timer)
>{
> return timer->prev != 0;
>}
Stupid me! You are right. Just fixed, thanks.
Andrea Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/