mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Unexpand an instance of TAILQ_EMPTY()
This commit is contained in:
parent
a04f78eacc
commit
6ad26d8376
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159598
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user