aboutsummaryrefslogtreecommitdiff
path: root/sys/tests
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-09-02 09:17:29 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-09-02 09:17:29 +0000
commitb1acfb2401f90cfef7cc3042d31cf5e34375aee9 (patch)
tree1872ac39b8eb0e13431baa32969ab79a6a97cdd6 /sys/tests
parentb148010b6a7ed33656dcf680c42e6df8c5f45f78 (diff)
Notes
Diffstat (limited to 'sys/tests')
-rw-r--r--sys/tests/epoch/epoch_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/tests/epoch/epoch_test.c b/sys/tests/epoch/epoch_test.c
index 9bdf94b7f46f..2359a785c5f8 100644
--- a/sys/tests/epoch/epoch_test.c
+++ b/sys/tests/epoch/epoch_test.c
@@ -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);