- Naively fix build by partially reverting r267029 to still use
gethrtime() when building libzpool. X-MFC-With: 267029
This commit is contained in:
parent
fd2c6bc9e1
commit
f3a7518361
@ -953,7 +953,11 @@ spa_taskq_dispatch_ent(spa_t *spa, zio_type_t t, zio_taskq_type_t q,
|
||||
if (tqs->stqs_count == 1) {
|
||||
tq = tqs->stqs_taskq[0];
|
||||
} else {
|
||||
#ifdef _KERNEL
|
||||
tq = tqs->stqs_taskq[cpu_ticks() % tqs->stqs_count];
|
||||
#else
|
||||
tq = tqs->stqs_taskq[gethrtime() % tqs->stqs_count];
|
||||
#endif
|
||||
}
|
||||
|
||||
taskq_dispatch_ent(tq, func, arg, flags, ent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user