summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-11-19 21:07:33 +0000
committered <ed@FreeBSD.org>2008-11-19 21:07:33 +0000
commit2e069b1e20617fc380d814ebfaf55d9406c3a0f0 (patch)
treeed6cc2ab49499f8333972e8387ccfe82a60d5b4a
parent9e21207c725f712a794403c91cec6e767e84a54f (diff)
downloadFreeBSD-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.
-rw-r--r--sys/dev/nmdm/nmdm.c4
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,
OpenPOWER on IntegriCloud