From 318c4f97e694c1972b55450cafe914f39977d179 Mon Sep 17 00:00:00 2001 From: jkim Date: Fri, 22 May 2015 17:05:21 +0000 Subject: CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten years for head. However, it is continuously misused as the mpsafe argument for callout_init(9). Deprecate the flag and clean up callout_init() calls to make them more consistent. Differential Revision: https://reviews.freebsd.org/D2613 Reviewed by: jhb MFC after: 2 weeks --- sys/dev/rndtest/rndtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/rndtest') diff --git a/sys/dev/rndtest/rndtest.c b/sys/dev/rndtest/rndtest.c index e4fd3b0..871d0b7 100644 --- a/sys/dev/rndtest/rndtest.c +++ b/sys/dev/rndtest/rndtest.c @@ -98,7 +98,7 @@ rndtest_attach(device_t dev) #if __FreeBSD_version < 500000 callout_init(&rsp->rs_to); #else - callout_init(&rsp->rs_to, CALLOUT_MPSAFE); + callout_init(&rsp->rs_to, 1); #endif } else device_printf(dev, "rndtest_init: no memory for state block\n"); -- cgit v1.1