Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_clock.c
Show First 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | if (atomic_cmpset_acq_int(&devpoll_run, 0, 1)) { | ||||
atomic_store_rel_int(&devpoll_run, 0); | atomic_store_rel_int(&devpoll_run, 0); | ||||
} | } | ||||
#endif /* DEVICE_POLLING */ | #endif /* DEVICE_POLLING */ | ||||
if (watchdog_enabled > 0) { | if (watchdog_enabled > 0) { | ||||
i = atomic_fetchadd_int(&watchdog_ticks, -newticks); | i = atomic_fetchadd_int(&watchdog_ticks, -newticks); | ||||
if (i > 0 && i <= newticks) | if (i > 0 && i <= newticks) | ||||
watchdog_fire(); | watchdog_fire(); | ||||
} | } | ||||
intr_event_handle(delay_intr_event, NULL); | |||||
} | } | ||||
if (curcpu == CPU_FIRST()) | if (curcpu == CPU_FIRST()) | ||||
cpu_tick_calibration(); | cpu_tick_calibration(); | ||||
if (__predict_false(DPCPU_GET(epoch_cb_count))) | if (__predict_false(DPCPU_GET(epoch_cb_count))) | ||||
GROUPTASK_ENQUEUE(DPCPU_PTR(epoch_cb_task)); | GROUPTASK_ENQUEUE(DPCPU_PTR(epoch_cb_task)); | ||||
} | } | ||||
void | void | ||||
▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines |