diff options
-rw-r--r-- | sys/kern/kern_clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 182e129..ea1a6f1 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -257,7 +257,7 @@ hardclock(int usermode, uintfptr_t pc) */ mtx_lock_spin_flags(&callout_lock, MTX_QUIET); ticks++; - if (TAILQ_FIRST(&callwheel[ticks & callwheelmask]) != NULL) { + if (!TAILQ_EMPTY(&callwheel[ticks & callwheelmask])) { need_softclock = 1; } else if (softticks + 1 == ticks) ++softticks; |