Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_compat.c
| Show First 20 Lines • Show All 2,113 Lines • ▼ Show 20 Lines | linux_timer_callback_wrapper(void *context) | ||||
| if (linux_set_current_flags(curthread, M_NOWAIT)) { | if (linux_set_current_flags(curthread, M_NOWAIT)) { | ||||
| /* try again later */ | /* try again later */ | ||||
| callout_reset(&timer->callout, 1, | callout_reset(&timer->callout, 1, | ||||
| &linux_timer_callback_wrapper, timer); | &linux_timer_callback_wrapper, timer); | ||||
| return; | return; | ||||
| } | } | ||||
| timer->function(timer->data); | timer->function(_TIME_LIST_DATA(timer)); | ||||
| } | } | ||||
| static int | static int | ||||
| linux_timer_jiffies_until(unsigned long expires) | linux_timer_jiffies_until(unsigned long expires) | ||||
| { | { | ||||
| unsigned long delta = expires - jiffies; | unsigned long delta = expires - jiffies; | ||||
| /* | /* | ||||
| ▲ Show 20 Lines • Show All 932 Lines • Show Last 20 Lines | |||||