summaryrefslogtreecommitdiff
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2006-06-14 03:14:26 +0000
committerXin LI <delphij@FreeBSD.org>2006-06-14 03:14:26 +0000
commit6ad26d83764b6252c83c2561add2a0e5c6926574 (patch)
tree995075593bc34fc287170c896ebd040dfb625e29 /sys/kern/kern_clock.c
parenta04f78eaccd90e0ea5168f1a4a58696b5f7c3f28 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 182e1297a129..ea1a6f1ca6ab 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;