Unexpand an instance of TAILQ_EMPTY()

This commit is contained in:
Xin LI 2006-06-14 03:14:26 +00:00
parent a04f78eacc
commit 6ad26d8376
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159598

View File

@ -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;