Fix build of epoch_test module.
While at it add missing epoch_free() call. MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
This commit is contained in:
parent
b148010b6a
commit
b1acfb2401
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365235
@ -2,6 +2,8 @@
|
||||
|
||||
.PATH: ${SRCTOP}/sys/tests/epoch
|
||||
KMOD= epoch_test
|
||||
SRCS= epoch_test.c
|
||||
SRCS= epoch_test.c \
|
||||
bus_if.h \
|
||||
device_if.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -141,7 +141,7 @@ test_modinit(void)
|
||||
int i, error, pri_range, pri_off;
|
||||
|
||||
pri_range = PRI_MIN_TIMESHARE - PRI_MIN_REALTIME;
|
||||
test_epoch = epoch_alloc(EPOCH_PREEMPT);
|
||||
test_epoch = epoch_alloc("test_epoch", EPOCH_PREEMPT);
|
||||
for (i = 0; i < mp_ncpus*2; i++) {
|
||||
etilist[i].threadid = i;
|
||||
error = kthread_add(testloop, &etilist[i], NULL, &testthreads[i],
|
||||
@ -209,6 +209,7 @@ epoch_test_module_event_handler(module_t mod, int what, void *arg __unused)
|
||||
mtx_unlock(&state_mtx);
|
||||
/* yes --- gross */
|
||||
pause("epoch unload", 3*hz);
|
||||
epoch_free(test_epoch);
|
||||
break;
|
||||
default:
|
||||
return (EOPNOTSUPP);
|
||||
|
Loading…
Reference in New Issue
Block a user