Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/subr_gtaskqueue.c
Show First 20 Lines • Show All 811 Lines • ▼ Show 20 Lines | taskqgroup_create(const char *name, int cnt, int stride) | ||||
} | } | ||||
return (qgroup); | return (qgroup); | ||||
} | } | ||||
void | void | ||||
taskqgroup_destroy(struct taskqgroup *qgroup) | taskqgroup_destroy(struct taskqgroup *qgroup) | ||||
{ | { | ||||
} | } | ||||
void | |||||
taskqgroup_drain_all(struct taskqgroup *tqg) | |||||
{ | |||||
struct gtaskqueue *q; | |||||
for (int i = 0; i < mp_ncpus; i++) { | |||||
q = tqg->tqg_queue[i].tgc_taskq; | |||||
if (q == NULL) | |||||
continue; | |||||
gtaskqueue_drain_all(q); | |||||
} | |||||
} |