diff options
author | ed <ed@FreeBSD.org> | 2008-11-19 21:07:33 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-11-19 21:07:33 +0000 |
commit | 2e069b1e20617fc380d814ebfaf55d9406c3a0f0 (patch) | |
tree | ed6cc2ab49499f8333972e8387ccfe82a60d5b4a /sys/dev/nmdm | |
parent | 9e21207c725f712a794403c91cec6e767e84a54f (diff) | |
download | FreeBSD-src-2e069b1e20617fc380d814ebfaf55d9406c3a0f0.zip FreeBSD-src-2e069b1e20617fc380d814ebfaf55d9406c3a0f0.tar.gz |
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.
Diffstat (limited to 'sys/dev/nmdm')
-rw-r--r-- | sys/dev/nmdm/nmdm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c index 706d416..2c41290 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, |