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.
This commit is contained in:
Ed Schouten 2008-11-19 21:07:33 +00:00
parent 2222a5c209
commit 7d82f624de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185106

View File

@ -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,