Date: Wed, 2 Sep 2020 09:17:30 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365235 - in head/sys: modules/epoch_test tests/epoch Message-ID: <202009020917.0829HUpZ072145@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Wed Sep 2 09:17:29 2020 New Revision: 365235 URL: https://svnweb.freebsd.org/changeset/base/365235 Log: Fix build of epoch_test module. While at it add missing epoch_free() call. MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Modified: head/sys/modules/epoch_test/Makefile head/sys/tests/epoch/epoch_test.c Modified: head/sys/modules/epoch_test/Makefile ============================================================================== --- head/sys/modules/epoch_test/Makefile Wed Sep 2 09:04:08 2020 (r365234) +++ head/sys/modules/epoch_test/Makefile Wed Sep 2 09:17:29 2020 (r365235) @@ -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> Modified: head/sys/tests/epoch/epoch_test.c ============================================================================== --- head/sys/tests/epoch/epoch_test.c Wed Sep 2 09:04:08 2020 (r365234) +++ head/sys/tests/epoch/epoch_test.c Wed Sep 2 09:17:29 2020 (r365235) @@ -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 mtx_unlock(&state_mtx); /* yes --- gross */ pause("epoch unload", 3*hz); + epoch_free(test_epoch); break; default: return (EOPNOTSUPP);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009020917.0829HUpZ072145>