Module Name: src Committed By: thorpej Date: Tue Dec 5 15:41:34 UTC 2023
Modified Files: src/sys/dev/pci: btvmei.c Log Message: b3_617_map_vme(): use VM_NOSLEEP. EX_NOWAIT is 0, to lack of EX_WAITOK is the same as EX_NOWAIT. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/btvmei.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/btvmei.c diff -u src/sys/dev/pci/btvmei.c:1.36 src/sys/dev/pci/btvmei.c:1.37 --- src/sys/dev/pci/btvmei.c:1.36 Tue Dec 5 14:58:01 2023 +++ src/sys/dev/pci/btvmei.c Tue Dec 5 15:41:34 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: btvmei.c,v 1.36 2023/12/05 14:58:01 thorpej Exp $ */ +/* $NetBSD: btvmei.c,v 1.37 2023/12/05 15:41:34 thorpej Exp $ */ /* * Copyright (c) 1999 @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: btvmei.c,v 1.36 2023/12/05 14:58:01 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: btvmei.c,v 1.37 2023/12/05 15:41:34 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -428,7 +428,7 @@ b3_617_map_vme(void *vsc, vme_addr_t vme /* bytes in scatter table required */ maplen = ((vmeend - vmebase) / VME_PAGESIZE + 1) * 4; - if (vmem_alloc(sc->vme_arena, maplen, VM_BESTFIT | VM_SLEEP, &first)) + if (vmem_alloc(sc->vme_arena, maplen, VM_BESTFIT | VM_NOSLEEP, &first)) return (ENOMEM); /*