]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Fix mod_timer and del_timer_sync
authormanu <manu@FreeBSD.org>
Mon, 25 May 2020 12:46:05 +0000 (12:46 +0000)
committermanu <manu@FreeBSD.org>
Mon, 25 May 2020 12:46:05 +0000 (12:46 +0000)
commit3fc1420eac76eb8ddf28d6b0715b2f2fe933f805
treebace1dbf25ca30fb93f85f72ed861b048c24f302
parent1c2e377244323f7f5d948156debded63dc826588
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