From 7d82f624de29a7488d495b142c075fd0c441a472 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Wed, 19 Nov 2008 21:07:33 +0000 Subject: Make nmdm(4) use MPSAFE callouts. For some reason the nmdm(4) driver doesn't use CALLOUT_MPSAFE, even though we live in the MPSAFE TTY era. Add the CALLOUT_MPSAFE flags. System survives. --- sys/dev/nmdm/nmdm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/nmdm') diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c index 706d416e662b..2c41290297bf 100644 --- a/sys/dev/nmdm/nmdm.c +++ b/sys/dev/nmdm/nmdm.c @@ -109,12 +109,12 @@ nmdm_alloc(unsigned long unit) ns->ns_part1.np_pair = ns; ns->ns_part1.np_other = &ns->ns_part2; TASK_INIT(&ns->ns_part1.np_task, 0, nmdm_task_tty, &ns->ns_part1); - callout_init(&ns->ns_part1.np_callout, 0); + callout_init(&ns->ns_part1.np_callout, CALLOUT_MPSAFE); ns->ns_part2.np_pair = ns; ns->ns_part2.np_other = &ns->ns_part1; TASK_INIT(&ns->ns_part2.np_task, 0, nmdm_task_tty, &ns->ns_part2); - callout_init(&ns->ns_part2.np_callout, 0); + callout_init(&ns->ns_part2.np_callout, CALLOUT_MPSAFE); /* Create device nodes. */ tp = ns->ns_part1.np_tty = tty_alloc(&nmdm_class, &ns->ns_part1, -- cgit v1.2.3