]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Fix mod_timer and del_timer_sync
authorEmmanuel Vadot <manu@FreeBSD.org>
Mon, 25 May 2020 12:46:05 +0000 (12:46 +0000)
committerEmmanuel Vadot <manu@FreeBSD.org>
Mon, 25 May 2020 12:46:05 +0000 (12:46 +0000)
commit42f0f394f72e94516fa4abe884b5e872ac110ce4
treebace1dbf25ca30fb93f85f72ed861b048c24f302
parent4efd5dd70dd2ff7d6bef4d805bbc89e833bf995c
linuxkpi: Fix mod_timer and del_timer_sync

mod_timer is supposed to return 1 if the modified timer was pending, which
is exactly what callout_reset does so return the value after checking
that it's a correct one in case the api change.
del_timer_sync returns int so add a function and handle that.

Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D24983
sys/compat/linuxkpi/common/include/linux/timer.h
sys/compat/linuxkpi/common/src/linux_compat.c