diff options
author | wpaul <wpaul@FreeBSD.org> | 2005-11-01 09:24:35 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2005-11-01 09:24:35 +0000 |
commit | 87ccfda2f10e62be3f57298a3f9140a436892158 (patch) | |
tree | 46e6e74bd48d916ee29073f5a16aeebfabbe70d5 | |
parent | e3fd45401799165536891c2ef07865ea2161a4bf (diff) | |
download | FreeBSD-src-87ccfda2f10e62be3f57298a3f9140a436892158.zip FreeBSD-src-87ccfda2f10e62be3f57298a3f9140a436892158.tar.gz |
Clean up one remaining 'multiple DPC thread' bogon: only bzero() one
sizeof(kq_queue), not sizeof(kq_queue) * mp_ncpus.
-rw-r--r-- | sys/compat/ndis/subr_ntoskrnl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c index f47badb..143c1bc 100644 --- a/sys/compat/ndis/subr_ntoskrnl.c +++ b/sys/compat/ndis/subr_ntoskrnl.c @@ -285,7 +285,11 @@ ntoskrnl_libinit() if (wq_queues == NULL) return(ENOMEM); +#ifdef NTOSKRNL_MULTIPLE_DPCS bzero((char *)kq_queues, sizeof(kdpc_queue) * mp_ncpus); +#else + bzero((char *)kq_queues, sizeof(kdpc_queue)); +#endif bzero((char *)wq_queues, sizeof(kdpc_queue) * WORKITEM_THREADS); /* |